Platform
CLI reference

ccp compute

View as Markdown

Deploy and manage long-running compute services

Usage: ccp compute [OPTIONS] <COMMAND>
ArgumentType or valuesDefaultParser environment variableDescription
--help, -hflag——Print help

ccp compute deploy

Deploy or redeploy a compute service

Usage: ccp compute deploy [OPTIONS]
ArgumentType or valuesDefaultParser environment variableDescription
--nametext——Service name (1–64 chars, lowercase alphanumeric + dashes). Required for first deploy
--imagetext——Container image to deploy (e.g. nginx:latest). Mutually exclusive with --binary
--binarypath——Path to a Linux x86_64 binary. Uploaded directly into a Firecracker VM — no Dockerfile needed. Mutually exclusive with --image
--runtimeauto, alpine, debian——Binary runtime. auto selects Alpine for musl/static and Debian for glibc
--portinteger——Port the service listens on. Required for first deploy
--vcpuinteger——Number of virtual CPUs. Must be supplied with --memory-mb
--memory-mbinteger——Guest memory in MiB. Must be supplied with --vcpu
--envtext——Repeatable: --env KEY=VALUE
--org-idtext——Organization ID (defaults to the Compute link, then context, CCP_ORG_ID, saved default, or picker)
--service-idtext——Update a specific service (skips config lookup)
--always-onflagfalse—Set always_on (first deploy only)
--yes, -yflagfalse—Skip confirmation prompts
--help, -hflag——Print help

ccp compute list

List compute services in an organization

Usage: ccp compute list [OPTIONS]

Aliases: ls.

ArgumentType or valuesDefaultParser environment variableDescription
--org-idtext——Organization ID (defaults to the Compute link, then context, CCP_ORG_ID, saved default, or picker)
--jsonflagfalse—Emit JSON: full ids, exact timestamps, complete URLs, no styling
--help, -hflag——Print help

ccp compute get

Show details for a compute service (deployment history, status)

Usage: ccp compute get [OPTIONS] [SERVICE_ID]
ArgumentType or valuesDefaultParser environment variableDescription
--jsonflagfalse—Emit structured JSON on stdout
service_idtext——Service ID or name (defaults to the linked service, or prompts in a terminal)
--help, -hflag——Print help

ccp compute logs

Fetch service logs (last N lines, default 100, max 1000)

Usage: ccp compute logs [OPTIONS] [SERVICE_ID]
ArgumentType or valuesDefaultParser environment variableDescription
--jsonflagfalse—Emit structured JSON on stdout
service_idtext——Service ID or name (defaults to the linked service, or prompts in a terminal)
--limit, -ninteger100—Number of lines to tail
--help, -hflag——Print help

ccp compute exec

Execute a one-shot command inside the running service

Usage: ccp compute exec [OPTIONS] [SERVICE_ID] -- <CMD>...
ArgumentType or valuesDefaultParser environment variableDescription
service_idtext——Service ID or name (defaults to the linked service, or prompts in a terminal)
--timeout-msinteger30000—Timeout in milliseconds (default 30000)
cmdtext——Command and args (after --)
--help, -hflag——Print help

ccp compute restart

Restart the service (re-runs same image)

Usage: ccp compute restart [OPTIONS] [SERVICE_ID]
ArgumentType or valuesDefaultParser environment variableDescription
service_idtext——Service ID or name (defaults to the linked service, or prompts in a terminal)
--help, -hflag——Print help

ccp compute delete

Tear down the compute service

Usage: ccp compute delete [OPTIONS] [SERVICE_ID]

Aliases: rm.

ArgumentType or valuesDefaultParser environment variableDescription
service_idtext——Service ID or name (defaults to the linked service, or prompts in a terminal)
--yes, -yflagfalse—Skip confirmation prompt
--help, -hflag——Print help

Example

ccp compute list --json

Global options

Set CCP_CONTEXT to choose a named context. An explicit --context takes precedence. See organization selection for organization defaults.

ArgumentType or valuesDefaultParser environment variableDescription
--contexttext——Select a developer context from ~/.ccp/config.toml

On this page