CLI Reference

The synodes CLI is the primary interface for managing sandboxes, snapshots, and volumes from the terminal. It talks to the Synodes control plane API and supports targeting different regions.

Global flag: --target lets you specify a region (us, eu) for all commands. Set SYNODES_TARGET to make it persistent.

Authentication

CommandDescription
synodes auth loginAuthenticate via browser or API key
synodes auth logoutClear stored credentials

Credentials are stored at ~/.synodes/config.yaml. You can also export SYNODES_API_KEY for headless environments like CI/CD pipelines.

Sandbox Management

CommandDescription
synodes create [flags]Provision a new sandbox
synodes listList all sandboxes in your account
synodes info [ID|NAME]Show details for a specific sandbox
synodes start [ID|NAME]Start a stopped sandbox
synodes stop [ID|NAME]Stop a running sandbox (preserves state)
synodes delete [ID|NAME]Permanently destroy a sandbox
synodes archive [ID|NAME]Archive a sandbox to cold storage

Create Flags

The create command supports the broadest set of flags:

FlagTypeDefaultDescription
--namestringauto-generatedHuman-readable sandbox name
--languagestringBase image (python, typescript, go, etc.)
--snapshotstringCreate from an existing snapshot
--cpuint2CPU cores allocated
--memoryint2048Memory in MB
--diskint10Disk space in GB
--envstringArrayEnvironment variables (KEY=VALUE)
--auto-stopint15Auto-stop after N minutes (0 = never)
--auto-deleteint−1Auto-delete N mins after stop (0 = immediately)
--targetstringusTarget region (us, eu)
--labelstringArrayLabels (KEY=VALUE)
--publicboolfalseMake sandbox publicly reachable
--volumestringArrayMount volumes (ID:/mount/path)

Code & Execution

CommandDescription
synodes exec [ID] [CMD]Execute a shell command inside a sandbox
synodes ssh [ID]Open an interactive SSH session
synodes logs [ID]Stream sandbox logs in real time
synodes preview-url [ID] [PORT]Generate a signed preview URL for a sandbox port
# Execute Python inline
synodes exec sand-abc123 "python -c 'print(\"hello\")'"

# Stream logs
synodes logs sand-abc123

# Get a preview URL for port 3000
synodes preview-url sand-abc123 3000

Snapshots & Volumes

CommandDescription
synodes snapshot create [ID]Snapshot a sandbox for reuse
synodes snapshot listList all snapshots
synodes snapshot delete [NAME]Delete a snapshot
synodes volume create [NAME] [SIZE_GB]Create a persistent volume
synodes volume listList all volumes
synodes volume delete [ID]Delete a volume

Organizations

CommandDescription
synodes organization listList organizations you belong to
synodes organization create [NAME]Create a new organization
synodes organization use [NAME]Switch active organization

Other Commands

CommandDescription
synodes versionPrint CLI version
synodes docsOpen docs in your browser
synodes autocompleteGenerate shell completion script
synodes mcpManage the Synodes MCP server (for AI agent integration)