CLI
A reference of supported operations using the Daytona CLI.
Daytona provides command-line access to core features for interacting with Daytona Sandboxes, including managing their lifecycle, snapshots, and more.
The CLI reference lists all commands supported by the daytona command-line tool, complete with a description of their behavior, and any supported flags.
You can access this documentation on a per-command basis by appending the --help/-h flag when invoking daytona.
Installation
Install the Daytona CLI to interact with Daytona sandboxes from the command line.
brew install daytonaio/cli/daytonaTrust the tap once so routine brew upgrade keeps the Daytona CLI up to date. Recent Homebrew versions require third-party taps to be explicitly trusted; without it, a bare brew upgrade skips the Daytona tap and the CLI goes stale:
brew trust daytonaio/cliTo upgrade the Daytona CLI to the latest version:
brew upgrade daytonaio/cli/daytonaAlternatively, install directly without Homebrew:
For Apple Silicon (arm64):
sudo curl -fL https://github.com/daytona/clients/releases/latest/download/daytona-darwin-arm64 -o /usr/local/bin/daytona && sudo chmod +x /usr/local/bin/daytonaFor Intel (amd64):
sudo curl -fL https://github.com/daytona/clients/releases/latest/download/daytona-darwin-amd64 -o /usr/local/bin/daytona && sudo chmod +x /usr/local/bin/daytonaAfter installing the Daytona CLI, use the daytona command to interact with Daytona sandboxes from the command line.
Sections
The reference groups commands into the following sections. Global flags that apply to every command are listed under daytona.
daytona
Daytona — sandboxes, images, snapshots and your organization, from the terminal
daytona is the command line for the Daytona platform.
At a terminal it is interactive: tables, pickers and a confirmation before destructive actions. When piped, redirected or run with --output json it is a strict tool: no prompts, --yes required for destructive verbs, JSON on stdout, diagnostics on stderr. Authorization is decided by the server; the CLI only presents the credential you give it.
Get started:
daytona login browser login (or --device on a remote host)
daytona image create py312 --ref python:3.12 import a registry image once
daytona sandbox create --image py312
daytona sandbox exec <id> -- python -c 'print(1)'
daytona docs --full the whole reference in one pageGlobal flags
Global flags apply to every command.
| Long | Short | Type | Default | Description |
|---|---|---|---|---|
--api-key | string | static credential sent as-is; disables the saved login for this call (env DAYTONA_API_KEY) | ||
--api-url | string | API base URL (env DAYTONA_API_URL) | ||
--debug | bool | log every request to stderr | ||
--file | -f | string | JSON request body from a file (or - for stdin); explicit flags override its fields | |
--no-wait | bool | return once the server accepts the operation instead of waiting for it to finish | ||
--org | string | organization id or name for this call (env DAYTONA_ORG) | ||
--output | -o | string | table | output format: table|json|yaml |
--profile | string | config profile to use (env DAYTONA_PROFILE) | ||
--project | string | project id or name for this call (env DAYTONA_PROJECT) | ||
--quiet | -q | bool | suppress progress and informational output on stderr | |
--region | string | region slug; filters lists and places creates (env DAYTONA_REGION) | ||
--timeout | string | 10m | how long to wait for an operation to finish | |
--yes | -y | bool | skip confirmation prompts (env DAYTONA_YES=1) |