CLICommands

CLI reference

Every snug command group, with its subcommands and the examples the binary itself ships. Run snug <command> --help for the same information at the terminal, and snug <command> <subcommand> --help for a subcommand's options.

Global options

These apply to every command.

OptionEnvironmentDefaultWhat it does
-u, --api-url <URL>SNUG_API_URLhttp://localhost:4000Which deployment to talk to
-t, --token <TOKEN>SNUG_API_TOKENThe credential to send
--output <FORMAT>tabletable, json, or compact
-q, --quietSuppress output; errors still print
-v, --verboseExplain what the command is doing
--no-colorPlain text, no ANSI colour
--timeout <SECONDS>30Per-request timeout
-V, --versionPrint the version and exit

Token signing commands also read JWT_PRIVATE_KEY and JWT_PUBLIC_KEY.

Output and scripting

--output json prints the bare payload with the transport envelope removed, so fields are addressed directly - jq '.key', never jq '.data.key'. Progress and success notices go to stderr in that mode, leaving stdout clean to pipe.

A command exits non-zero when the operation fails, and prints a parseable error body on stdout in JSON mode. See Getting started for the full contract.

Commands

Platform

CommandWhat it does
authAuthentication and user management
scimSCIM 2.0 provisioning
adminAdmin operations
jwtJWT token generation and management
healthCheck API health
metricsShow Prometheus metrics
openapiOpenAPI specification export
configConfiguration management
rate-limitRate limit administration (tiers, modules, endpoints, users, self-serve limits)
circuit-breakerDistributed circuit breaker management

Data & state

CommandWhat it does
kvKey-value store operations
blobsBlob storage operations
distributed-stateDistributed state and locking operations
ecsEntity Component System operations
i18nLocalization and translation management
live-jsonLive JSON real-time database operations
remote-configRemote configuration management
vaultTime-Locked Attestation Vault: seal, reveal, witness, and lottery
lineageBreeding and trait inheritance

Messaging & realtime

CommandWhat it does
pubsubPub/Sub operations
websocketWebSocket admin operations (stats, cleanup)
mqMessage Queue - SNS/SQS-style topics, queues, and subscriptions
queuesManage queues
inboxInbox persistent notifications
presencePresence occupancy and cognitive-state operations
commentUniversal threaded comments with moderation and reactions
timelineTimeline Service - Time-series event storage
webhooksWebhook management

Jobs & workflow

CommandWhat it does
jobsManage jobs (schedule, cancel, list)
job-queuesManage job queue manifests (create, update, pause, resume, delete)
fsmFinite State Machine operations
chronoTemporal resource regeneration, cooldowns and idle accrual
directorDirector - Tension-curve pacing engine
consensusConsensus-based truth registry with reputation-weighted BFT voting
hitlHITL - human-in-the-loop approval requests and decisions
leaseLease exclusive, time-bound access to unique resources
arbiterArbiter LLM-as-a-judge reasoning and evaluation

Commerce

CommandWhat it does
treasuryTreasury virtual economy: wallets, transfers, holds, and analytics
meterMeter - Usage metering, quotas, and billing rollups
cartCart and checkout-intent operations
itemItem Engine: inventory, crafting, durability, and collections
auctionsAuction management
promo-codePromo code generation, redemption, and entitlement locks
subscriptionSubscription entitlement timing management
surge-pricingSurge Pricing - Dynamic pricing policies and calculations
loyaltyLoyalty and rewards management

Game mechanics

CommandWhat it does
leaderboardLeaderboard operations
tournamentTournament bracket management
matchmakingMatchmaking service operations
guildGuild management
questQuest engine: definitions, progress, expeditions, and puzzles
achievementAchievement engine management
badgeBadge template registry, rendering, and verification
lotteryLottery operations (weighted random selection)

Simulation & social

CommandWhat it does
reputationReputation - Domain trust scores and pairwise affinity
ritualSynchronized multi-party ritual operations
rumorRumor - Information propagation over graphs
pactPact - multi-party staked agreements with signatures and obligations
biomePopulation dynamics simulation (biomes)
seedlingSeedling - Deterministic generation, minting, and provenance
successionSuccession - inheritance and handover of ownership, roles, and assets
talentTalent tree progression, allocation, and respec
almanacWorld time, calendars, weather, and content windows

Identity & trust

CommandWhat it does
aliasAlias identity resolution (link, resolve, merge, proxies)
attestationAttestation - Prove external account ownership via posted proofs
monikerNaming and handle registration
handshakeHandshake - bilateral negotiation and escrowed settlement
termPolicy document publishing and consent tracking

Product & growth

CommandWhat it does
waiting-roomWaiting room management
tourProduct tour and onboarding progress tracking
linkLink redirect & attribution management
formSchema-backed form intake and submissions
pollPoll, voting, and tally operations
throttleRate limiting as a product: token-bucket plans and checks

Story & agents

CommandWhat it does
narrativeNarrative Engine - Manage universes, actors, stories, sessions, and events
loreLore - Interactive story runtime: sessions, player commands, checkpoints
agentAgent registry (create, list, resolve, update, delete agents)
livenessEntity liveness tracking
geoGeo-proximity operations

On this page