superserve CLI covers the same surface as the SDK: sandboxes, commands, files, preview URLs, snapshots, templates and secrets.
Install
~/.superserve/bin, adds that to your PATH in your shell profile, then, when run in a terminal, starts superserve login so you can sign in or sign up straight away. Set SUPERSERVE_NO_MODIFY_PATH=1 to leave your profile alone, or SUPERSERVE_NO_LOGIN=1 to skip the sign-in. Set SUPERSERVE_INSTALL_DIR to install somewhere else, or SUPERSERVE_VERSION (for example 2.1.2) to install a specific release.
Authenticate
login opens the Superserve Console in your browser. Sign in or sign up (new accounts start free with a limited trial, no card required), check that the code on the page matches your terminal, and approve. The CLI saves a new API key to ~/.superserve/credentials.json; it shows up as CLI · <hostname> on the API keys page, where you can revoke it.
Without a browser on the same machine (SSH, containers, agents), use --no-browser to just print the URL, or --no-wait to print it and exit. Run superserve login again after approving to pick up the key.
To save a key you already have, pipe it into --with-key, or run --with-key alone for a hidden prompt:
SUPERSERVE_API_KEY instead; it takes precedence over the saved key.
Quickstart
Commands
Run
superserve <command> --help for every option, with examples.
Scripting
Add--json to any command that returns data for machine-readable output on stdout. Commands that stream raw bytes or take over the terminal (files cat, files download -, shell, completion) ignore it. Progress and errors go to stderr, so pipes only ever see data.
--json, errors are printed to stderr as {"error": {"message", "code", "status"}}. Destructive commands ask for confirmation in a terminal and refuse to run non-interactively unless you pass --yes.
Exit codes
superserve exec exits with the remote command’s own exit code.
Shell completion
superserve completion powershell | Out-String | Invoke-Expression to your $PROFILE.
Environment variables
Telemetry
The CLI sends one anonymous event per command: the command name (for examplesandbox create), its exit code and duration, the CLI version, OS, CPU architecture, runtime and whether it ran in CI, keyed by a random ID stored in the config directory. It never sends arguments, sandbox IDs, file paths, output or your API key. Disable it with SUPERSERVE_TELEMETRY=0 or DO_NOT_TRACK=1.