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-v0 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-v0.
Installation
Section titled “Installation”Install the Daytona CLI to interact with Daytona sandboxes from the command line. The Daytona v0 CLI installs as daytona-v0, next to the Daytona v2 CLI, which installs as daytona.
brew install daytonaio/cli/daytona-v0To upgrade the Daytona CLI to the latest 0.x version:
brew upgrade daytonaio/cli/daytona-v0Alternatively, install directly without Homebrew. The script downloads the latest 0.x release, verifies its checksum, and installs it to /usr/local/bin, or to ~/.local/bin if /usr/local/bin is not writable:
curl -fsSL https://raw.githubusercontent.com/daytona/clients/release/v0/cli/install-v0.sh | shThe script downloads the latest 0.x release, verifies its checksum, and installs it to /usr/local/bin, or to ~/.local/bin if /usr/local/bin is not writable:
curl -fsSL https://raw.githubusercontent.com/daytona/clients/release/v0/cli/install-v0.sh | shAlternatively, install with Homebrew:
brew install daytonaio/cli/daytona-v0The script downloads the latest 0.x release, verifies its checksum, installs it to %LOCALAPPDATA%\Daytona\bin, and adds the directory to the user PATH. Open a new terminal to use daytona-v0:
powershell -Command "irm https://get.daytona.io/windows-v0 | iex"After installing the Daytona CLI, use the daytona-v0 command to interact with Daytona sandboxes from the command line.
daytona-v0
Section titled “daytona-v0”Daytona CLI
daytona-v0 [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 | |
--version | -v | Display the version of Daytona |
daytona-v0 archive
Section titled “daytona-v0 archive”Archive a sandbox
daytona-v0 archive [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 autocomplete
Section titled “daytona-v0 autocomplete”Adds a completion script for your shell environment
daytona-v0 autocomplete [bash|zsh|fish|powershell] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 create
Section titled “daytona-v0 create”Create a new sandbox
daytona-v0 create [flags]Flags
| Long | Short | Description |
|---|---|---|
--auto-archive | Auto-archive interval in minutes (0 means the maximum interval will be used) | |
--auto-delete | Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) | |
--auto-pause | Auto-pause interval in minutes (0 means disabled). Only supported for sandbox classes that support pausing. Not allowed for ephemeral sandboxes. Mutually exclusive with —auto-stop | |
--auto-stop | Auto-stop interval in minutes (0 means disabled). Server default: 15, except for sandbox classes that support pausing where auto-pause defaults to 60 instead | |
--context | -c | Files or directories to include in the build context (can be specified multiple times) |
--cpu | CPU cores allocated to the sandbox | |
--disk | Disk space allocated to the sandbox in GB | |
--dockerfile | -f | Path to Dockerfile for Sandbox snapshot |
--env | -e | Environment variables (format: KEY=VALUE) |
--gpu | GPU units allocated to the sandbox | |
--kvm | Expose KVM (/dev/kvm) inside the sandbox via nested virtualization. linux-vm snapshots only. Requires the sandbox_kvm feature for the organization. | |
--label | -l | Labels (format: KEY=VALUE) |
--memory | Memory allocated to the sandbox in MB | |
--name | Name of the sandbox | |
--network-allow-list | Comma-separated list of allowed CIDR network addresses for the sandbox | |
--network-block-all | Whether to block all network access for the sandbox | |
--public | Make sandbox publicly accessible | |
--queue-timeout | Minutes to wait for runner assignment before the sandbox creation is cancelled (omit to use the organization default) | |
--snapshot | Snapshot to use for the sandbox | |
--target | Target region (eu, us) | |
--ttl | Maximum time to live in minutes, counted as wall-clock time since creation regardless of sandbox state (0 means disabled). When it elapses the sandbox is destroyed, even if it is stopped, paused, or archived | |
--user | User associated with the sandbox | |
--volume | -v | Volumes to mount (format: VOLUME_ID_OR_NAME:MOUNT_PATH) |
--help | help for daytona-v0 |
daytona-v0 delete
Section titled “daytona-v0 delete”Delete a sandbox
daytona-v0 delete [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--all | -a | Delete all sandboxes |
--help | help for daytona-v0 |
daytona-v0 docs
Section titled “daytona-v0 docs”Opens the Daytona documentation in your default browser.
daytona-v0 docs [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 exec
Section titled “daytona-v0 exec”Execute a command in a sandbox
daytona-v0 exec [SANDBOX_ID | SANDBOX_NAME] -- [COMMAND] [ARGS...] [flags]Flags
| Long | Short | Description |
|---|---|---|
--cwd | Working directory for command execution | |
--timeout | Command timeout in seconds (0 for no timeout) | |
--help | help for daytona-v0 |
daytona-v0 info
Section titled “daytona-v0 info”Get sandbox info
daytona-v0 info [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona-v0 |
daytona-v0 list
Section titled “daytona-v0 list”List sandboxes
daytona-v0 list [flags]Flags
| Long | Short | Description |
|---|---|---|
--cursor | -c | Cursor for pagination |
--format | -f | Output format. Must be one of (yaml, json) |
--limit | -l | Maximum number of items per page |
--help | help for daytona-v0 |
daytona-v0 login
Section titled “daytona-v0 login”Log in to Daytona
daytona-v0 login [flags]Flags
| Long | Short | Description |
|---|---|---|
--api-key | API key to use for authentication | |
--help | help for daytona-v0 |
daytona-v0 logout
Section titled “daytona-v0 logout”Logout from Daytona
daytona-v0 logout [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 mcp
Section titled “daytona-v0 mcp”Manage Daytona MCP Server
daytona-v0 mcp [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 mcp config
Section titled “daytona-v0 mcp config”Outputs JSON configuration for Daytona MCP Server
daytona-v0 mcp config [AGENT_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 mcp init
Section titled “daytona-v0 mcp init”Initialize Daytona MCP Server with an agent (currently supported: claude, windsurf, cursor)
daytona-v0 mcp init [AGENT_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 mcp start
Section titled “daytona-v0 mcp start”Start Daytona MCP Server
daytona-v0 mcp start [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 organization
Section titled “daytona-v0 organization”Manage Daytona organizations
daytona-v0 organization [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 organization create
Section titled “daytona-v0 organization create”Create a new organization and set it as active
daytona-v0 organization create [ORGANIZATION_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--region | -r | Default region (id or name) for the organization |
--help | help for daytona-v0 |
daytona-v0 organization delete
Section titled “daytona-v0 organization delete”Delete an organization
daytona-v0 organization delete [ORGANIZATION] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 organization list
Section titled “daytona-v0 organization list”List all organizations
daytona-v0 organization list [flags]Flags
| Long | Short | Description |
|---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona-v0 |
daytona-v0 organization members
Section titled “daytona-v0 organization members”List members of an organization
daytona-v0 organization members [ORGANIZATION] [flags]Flags
| Long | Short | Description |
|---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona-v0 |
daytona-v0 organization use
Section titled “daytona-v0 organization use”Set active organization
daytona-v0 organization use [ORGANIZATION] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 pause
Section titled “daytona-v0 pause”Pause a sandbox
daytona-v0 pause [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 preview-url
Section titled “daytona-v0 preview-url”Get signed preview URL for a sandbox port
daytona-v0 preview-url [SANDBOX_ID | SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--expires | URL expiration time in seconds | |
--port | -p | Port number to get preview URL for (required) |
--help | help for daytona-v0 |
daytona-v0 snapshot
Section titled “daytona-v0 snapshot”Manage Daytona snapshots
daytona-v0 snapshot [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 snapshot activate
Section titled “daytona-v0 snapshot activate”Activate a snapshot
daytona-v0 snapshot activate [SNAPSHOT_ID | SNAPSHOT_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 snapshot create
Section titled “daytona-v0 snapshot create”Create a snapshot
daytona-v0 snapshot create [SNAPSHOT] [flags]Flags
| Long | Short | Description |
|---|---|---|
--context | -c | Files or directories to include in the build context (can be specified multiple times). If not provided, context will be automatically determined from COPY/ADD commands in the Dockerfile |
--cpu | CPU cores that will be allocated to the underlying sandboxes (default: 1) | |
--disk | Disk space that will be allocated to the underlying sandboxes in GB (default: 3) | |
--dockerfile | -f | Path to Dockerfile to build |
--entrypoint | -e | The entrypoint command for the snapshot |
--image | -i | The image name for the snapshot |
--memory | Memory that will be allocated to the underlying sandboxes in GB (default: 1) | |
--region | ID of the region where the snapshot will be available (defaults to organization default region) | |
--sandbox-class | Target sandbox class for the snapshot. One of: ‘container’ or ‘linux-vm’ (defaults to organization/server default) | |
--help | help for daytona-v0 |
daytona-v0 snapshot delete
Section titled “daytona-v0 snapshot delete”Delete a snapshot
daytona-v0 snapshot delete [SNAPSHOT_ID | SNAPSHOT_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--all | -a | Delete all snapshots |
--help | help for daytona-v0 |
daytona-v0 snapshot list
Section titled “daytona-v0 snapshot list”List all snapshots
daytona-v0 snapshot list [flags]Flags
| Long | Short | Description |
|---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--limit | -l | Maximum number of items per page |
--page | -p | Page number for pagination (starting from 1) |
--source-sandbox-id | Filter by the ID of the sandbox the snapshot was created from | |
--help | help for daytona-v0 |
daytona-v0 snapshot push
Section titled “daytona-v0 snapshot push”Push local snapshot
daytona-v0 snapshot push [SNAPSHOT] [flags]Flags
| Long | Short | Description |
|---|---|---|
--cpu | CPU cores that will be allocated to the underlying sandboxes (default: 1) | |
--disk | Disk space that will be allocated to the underlying sandboxes in GB (default: 3) | |
--entrypoint | -e | The entrypoint command for the image |
--memory | Memory that will be allocated to the underlying sandboxes in GB (default: 1) | |
--name | -n | Specify the Snapshot name |
--region | ID of the region where the snapshot will be available (defaults to organization default region) | |
--help | help for daytona-v0 |
daytona-v0 ssh
Section titled “daytona-v0 ssh”SSH into a sandbox
daytona-v0 ssh [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--expires | SSH access token expiration time in minutes | |
--help | help for daytona-v0 |
daytona-v0 start
Section titled “daytona-v0 start”Start a sandbox
daytona-v0 start [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 stop
Section titled “daytona-v0 stop”Stop a sandbox
daytona-v0 stop [SANDBOX_ID] | [SANDBOX_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--force | -f | Force stop the sandbox using SIGKILL |
--help | help for daytona-v0 |
daytona-v0 version
Section titled “daytona-v0 version”Print the version number
daytona-v0 version [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 volume
Section titled “daytona-v0 volume”Manage Daytona volumes
daytona-v0 volume [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 volume create
Section titled “daytona-v0 volume create”Create a volume
daytona-v0 volume create [NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--size | -s | Size of the volume in GB |
--help | help for daytona-v0 |
daytona-v0 volume delete
Section titled “daytona-v0 volume delete”Delete a volume
daytona-v0 volume delete [VOLUME_ID_OR_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--help | help for daytona-v0 |
daytona-v0 volume get
Section titled “daytona-v0 volume get”Get volume details
daytona-v0 volume get [VOLUME_ID_OR_NAME] [flags]Flags
| Long | Short | Description |
|---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona-v0 |
daytona-v0 volume list
Section titled “daytona-v0 volume list”List all volumes
daytona-v0 volume list [flags]Flags
| Long | Short | Description |
|---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona-v0 |