CreateOS Sandbox CLI
The createos binary is the command-line interface for CreateOS. Sandbox commands live under the sandbox subcommand (aliased to sb):
Bash1createos sandbox <subcommand> [flags]2# or the shorter alias3createos sb <subcommand> [flags]
At a glance
- Binary:
createos— sandbox commands aliased tosb - Install:
curl -sfL https://raw.githubusercontent.com/NodeOps-app/createos-cli/main/install.sh | sh - - Auth:
createos login(browser) orcreateos login --token <token> - Sandbox API:
https://api.sb.createos.sh
Installation
curl (Linux / macOS)
Bash1curl -sfL https://raw.githubusercontent.com/NodeOps-app/createos-cli/main/install.sh | sh -
Homebrew (macOS)
Bash1brew tap nodeops-app/tap2brew install createos
Upgrade
Bash1createos upgrade
Authentication
Browser login (recommended)
Bash1createos login
Opens your browser to complete OAuth sign-in. Your session is saved automatically to ~/.createos/.
API token
Get your token from createos.nodeops.network/profile, then:
Bash1createos login --token <your-api-token>
CI / non-interactive environments
Pass --token directly — browser login is not available in headless environments.
Bash1# Set token as an environment variable and reference it2createos login --token "$CREATEOS_TOKEN"
Commands that would normally prompt for confirmation (like sandbox rm) require --force in non-interactive mode.
Verify login
Bash1createos whoami
Quickstart
Bash1# 1. Sign in2createos login34# 2. List available sizes5createos sandbox shapes67# 3. Create a sandbox8createos sandbox create --shape s-1vcpu-1gb --name my-box910# 4. Run a command11createos sandbox exec my-box -- uname -a1213# 5. Open a shell14createos sandbox shell my-box1516# 6. Delete when done17createos sandbox rm my-box --force
Global flags
These flags are accepted by every createos command:
| Flag | Short | Description |
|---|---|---|
--output <fmt> | -o | Output format: json or table (default). Auto-switches to JSON when stdout is not a terminal. |
--debug | -d | Print HTTP request/response details (token is masked). |
--api-url <url> | Override the main API base URL. | |
--sandbox-api-url <url> | Override the sandbox API base URL (default: https://api.sb.createos.sh). | |
--sandbox-gateway <host:port> | SSH gateway address used by sandbox shell --ssh (default: gateway.sb.createos.sh:2222). |
Non-interactive / CI usage
- Use
--output jsonfor machine-readable output that is safe to pipe and parse. - Pass
--force(or-y) to commands that prompt for confirmation (e.g.sandbox rm). - Set
CREATEOS_TOKENand authenticate withcreateos login --token "$CREATEOS_TOKEN"before running other commands.
Bash1# Example: list running sandboxes as JSON in CI2createos sandbox list --output json34# Delete all failed sandboxes non-interactively5createos sandbox list --status failed --quiet | xargs createos sandbox rm --force
Full command reference
See Command Reference for every subcommand, flag table, and usage example.