Skip to content

CLI

The daytona command-line tool provides access to Daytona’s core features including managing images and the lifecycle of Daytona Sandboxes. View the installation instructions by clicking here.

This reference lists all commands supported by the daytona command-line tool complete with a description of their behaviour, and any supported flags. You can access this documentation on a per-command basis by appending the --help/-h flag when invoking daytona.

daytona version

Print the version number

Terminal window
daytona version [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona sandbox info

Get sandbox info

Terminal window
daytona sandbox info [SANDBOX_ID] [flags]

Flags

LongShortDescription
--format-fOutput format. Must be one of (yaml, json)
--verbose-vInclude verbose output
--helphelp for daytona

daytona sandbox list

List sandboxes

Terminal window
daytona sandbox list [flags]

Flags

LongShortDescription
--format-fOutput format. Must be one of (yaml, json)
--verbose-vInclude verbose output
--helphelp for daytona

daytona sandbox start

Start a sandbox

Terminal window
daytona sandbox start [SANDBOX_ID] [flags]

Flags

LongShortDescription
--all-aStart all sandboxes
--helphelp for daytona

daytona sandbox stop

Stop a sandbox

Terminal window
daytona sandbox stop [SANDBOX_ID] [flags]

Flags

LongShortDescription
--all-aStop all sandboxes
--helphelp for daytona

daytona sandbox

Manage Daytona sandboxes

Terminal window
daytona sandbox [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona sandbox create

Create a new sandbox

Terminal window
daytona sandbox create [flags]

Flags

LongShortDescription
--auto-stopAuto-stop interval in minutes (0 means disabled)
--classWorkspace class type (small, medium, large)
--cpuCPU cores allocated to the sandbox
--diskDisk space allocated to the sandbox in GB
--env-eEnvironment variables (format: KEY=VALUE)
--gpuGPU units allocated to the sandbox
--imageImage to use for the sandbox
--label-lLabels (format: KEY=VALUE)
--memoryMemory allocated to the sandbox in MB
--nameName of the sandbox
--publicMake sandbox publicly accessible
--targetTarget region (eu, us, asia)
--userUser associated with the sandbox
--helphelp for daytona

daytona sandbox delete

Delete a sandbox

Terminal window
daytona sandbox delete [SANDBOX_ID] [flags]

Flags

LongShortDescription
--all-aDelete all sandboxes
--force-fForce delete
--helphelp for daytona

daytona image push

Push local image

Terminal window
daytona image push [IMAGE] [flags]

Flags

LongShortDescription
--dockerfile-fPath to Dockerfile to build before pushing
--entrypoint-eThe entrypoint command for the image
--helphelp for daytona

daytona login

Log in to Daytona

Terminal window
daytona login [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona logout

Logout from Daytona

Terminal window
daytona logout [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona image

Manage Daytona images

Terminal window
daytona image [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona image create

Create an image

Terminal window
daytona image create [IMAGE] [flags]

Flags

LongShortDescription
--entrypoint-eThe entrypoint command for the image
--helphelp for daytona

daytona image delete

Delete an image

Terminal window
daytona image delete [IMAGE_ID] [flags]

Flags

LongShortDescription
--all-aDelete all images
--helphelp for daytona

daytona image list

List all images

Terminal window
daytona image list [flags]

Flags

LongShortDescription
--format-fOutput format. Must be one of (yaml, json)
--helphelp for daytona

daytona

Daytona CLI

Terminal window
daytona [flags]

Flags

LongShortDescription
--helphelp for daytona
--version-vDisplay the version of Daytona

daytona autocomplete

Adds a completion script for your shell environment

Terminal window
daytona autocomplete [bash|zsh|fish|powershell] [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona docs

Opens the Daytona documentation in your default browser.

Terminal window
daytona docs [flags]

Flags

LongShortDescription
--helphelp for daytona