CLI
The daytona
command-line tool provides access to Daytona’s core features.
You can use the daytona
tool for the following operations:
- Managing the lifecycle of the Daytona Server.
- Managing Workspaces, Git Providers, Providers, and other Daytona components.
- Configuring the Daytona Server interactively.
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
Daytona is a Dev Environment Manager
daytona [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--version | -v | Display the version of Daytona |
daytona api-key
Api Key commands
daytona api-key [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona api-key create
Create a new API key
daytona api-key create [NAME] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona api-key delete
Delete an API key
daytona api-key delete [NAME] [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Skip confirmation prompt |
--help | help for daytona |
daytona api-key list
List API keys
daytona api-key list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona autocomplete
Adds a completion script for your shell environment
daytona autocomplete [bash|zsh|fish|powershell] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona build
Manage builds
daytona build [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona build delete
Delete a build
daytona build delete [BUILD] [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Delete ALL builds |
--force | -f | Force delete build |
--prebuild-id | Delete ALL builds from prebuild | |
--help | help for daytona |
daytona build info
Show build info
daytona build info [BUILD] [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona build list
List all builds
daytona build list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona build logs
View logs for build
daytona build logs [flags]
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona |
daytona build run
Run a build from a workspace template
daytona build run [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona code
Open a workspace in your preferred IDE
daytona code [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--ide | -i | Specify the IDE (vscode, code-insiders, browser, cursor, codium, codium-insiders, ssh, jupyter, fleet, positron, zed, windsurf, clion, goland, intellij, phpstorm, pycharm, rider, rubymine, webstorm) |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona config
Output Daytona configuration
daytona config [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--show-api-keys | -k | Show API keys |
--help | help for daytona |
daytona create
Create a workspace
daytona create [REPOSITORY_URL | WORKSPACE_CONFIG_NAME]... [flags]
Flags
Long | Short | Description |
---|---|---|
--blank | Create a blank workspace without using existing templates | |
--branch | Specify the Git branches to use in the workspaces | |
--builder | Specify the builder (currently auto/devcontainer/none) | |
--custom-image | Create the workspace with the custom image passed as the flag value; Requires setting —custom-image-user flag as well | |
--custom-image-user | Create the workspace with the custom image user passed as the flag value; Requires setting —custom-image flag as well | |
--devcontainer-path | Automatically assign the devcontainer builder with the path passed as the flag value | |
--env | Specify environment variables (e.g. —env ‘KEY1=VALUE1’ —env ‘KEY2=VALUE2’ …‘) | |
--git-provider-config | Specify the Git provider configuration ID or alias | |
--ide | -i | Specify the IDE (vscode, code-insiders, browser, cursor, codium, codium-insiders, ssh, jupyter, fleet, positron, zed, windsurf, clion, goland, intellij, phpstorm, pycharm, rider, rubymine, webstorm) |
--label | Specify labels (e.g. —label ‘label.key1=VALUE1’ —label ‘label.key2=VALUE2’ …) | |
--manual | Manually enter the Git repository | |
--multi-workspace | Target with multiple workspaces/repos | |
--no-ide | -n | Do not open the target in the IDE after target creation |
--target | -t | Specify the target (e.g. ‘local’) |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona delete
Delete a workspace
daytona delete [WORKSPACE]... [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Delete all workspaces |
--force | -f | Delete a workspace by force |
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona docs
Opens the Daytona documentation in your default browser.
daytona docs [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona env
Manage server environment variables that are added to all targets and workspaces
daytona env [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona env delete
Delete server environment variables
daytona env delete [KEY]... [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona env list
List server environment variables
daytona env list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--show-values | -v | Show environment variable values |
--help | help for daytona |
daytona env set
Set server environment variables
daytona env set [KEY=VALUE]... [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona forward
Forward a port from a workspace to your local machine
daytona forward [PORT] [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--public | Should be port be available publicly via an URL | |
--help | help for daytona |
daytona git-provider
Manage Git provider configs
daytona git-provider [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona git-provider create
Create a Git provider config
daytona git-provider create [GIT_PROVIDER_ID] [flags]
Flags
Long | Short | Description |
---|---|---|
--alias | -a | Alias |
--base-api-url | -b | Base API Url |
--signing-key | -k | Signing Key |
--signing-method | -s | Signing Method (ssh, gpg) |
--token | -t | Personal Access Token |
--username | -u | Username |
--help | help for daytona |
daytona git-provider delete
Delete a Git provider config
daytona git-provider delete [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Delete all Git providers |
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona git-provider list
Lists your registered Git provider configs
daytona git-provider list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona git-provider update
Update a Git provider
daytona git-provider update [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona ide
Choose the default IDE
daytona ide [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona info
Show workspace info
daytona info [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona list
List workspaces
daytona list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--label | -l | Filter by label |
--help | help for daytona |
daytona logs
View the logs of a workspace
daytona logs [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona |
daytona prebuild
Manage prebuilds
daytona prebuild [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona prebuild create
Create a prebuild configuration
daytona prebuild create [WORKSPACE_CONFIG] [flags]
Flags
Long | Short | Description |
---|---|---|
--branch | -b | Git branch for the prebuild |
--commit-interval | -c | Commit interval for running a prebuild - leave blank to ignore push events |
--retention | -r | Maximum number of resulting builds stored at a time |
--run | Run the prebuild once after adding it | |
--trigger-files | -t | Full paths of files whose changes should explicitly trigger a prebuild |
--help | help for daytona |
daytona prebuild delete
Delete a prebuild configuration
daytona prebuild delete [WORKSPACE_CONFIG] [PREBUILD] [flags]
Flags
Long | Short | Description |
---|---|---|
--force | -f | Force delete prebuild |
--help | help for daytona |
daytona prebuild info
Show prebuild configuration info
daytona prebuild info [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona prebuild list
List prebuild configurations
daytona prebuild list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona prebuild update
Update a prebuild configuration
daytona prebuild update [WORKSPACE_CONFIG] [PREBUILD_ID] [flags]
Flags
Long | Short | Description |
---|---|---|
--branch | -b | Git branch for the prebuild |
--commit-interval | -c | Commit interval for running a prebuild - leave blank to ignore push events |
--retention | -r | Maximum number of resulting builds stored at a time |
--run | Run the prebuild once after updating it | |
--trigger-files | -t | Full paths of files whose changes should explicitly trigger a prebuild |
--help | help for daytona |
daytona profile
Manage profiles
daytona profile [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona profile create
Create a profile
daytona profile create [flags]
Flags
Long | Short | Description |
---|---|---|
--api-key | -k | API Key |
--api-url | -a | API URL |
--name | -n | Profile name |
--help | help for daytona |
daytona profile delete
Delete a profile
daytona profile delete [PROFILE_NAME] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona profile list
List profiles
daytona profile list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona profile update
Update profile [PROFILE_NAME]
daytona profile update [flags]
Flags
Long | Short | Description |
---|---|---|
--api-key | -k | API Key |
--api-url | -a | API URL |
--name | -n | Profile name |
--help | help for daytona |
daytona provider
Manage providers
daytona provider [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona provider install
Install provider
daytona provider install [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona provider list
List installed providers
daytona provider list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona provider uninstall
Uninstall provider
daytona provider uninstall [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona provider update
Update provider
daytona provider update [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Update all providers |
--help | help for daytona |
daytona purge
Purges all Daytona data from the current device
daytona purge [flags]
Flags
Long | Short | Description |
---|---|---|
--force | -f | Delete all targets by force |
--yes | -y | Execute purge without a prompt |
--help | help for daytona |
daytona restart
Restart a workspace
daytona restart [WORKSPACE]... [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona runner
Manage the runner
daytona runner [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona runner config
Outputs Daytona Runner config
daytona runner config [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--key | -k | Show API Key |
--help | help for daytona |
daytona runner configure
Configure Daytona Runner
daytona runner configure [flags]
Flags
Long | Short | Description |
---|---|---|
--api-key | Runner API Key | |
--api-url | Daytona Server API URL | |
--client-id | Client ID | |
--disable-telemetry | Disable telemetry | |
--id | Runner ID | |
--name | Runner Name | |
--help | help for daytona |
daytona runner logs
View runner logs
daytona runner logs [flags]
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona |
daytona runner purge
Purges the Daytona Runner
daytona runner purge [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Execute Daytona Runner purge without a prompt |
--help | help for daytona |
daytona runner restart
Restarts the runner
daytona runner restart [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona runner serve
Starts the runner in the foreground
daytona runner serve [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona runner start
Starts the runner
daytona runner start [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona runner stop
Stops the runner
daytona runner stop [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona serve
Run the server process in the current terminal session
daytona serve [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server
Start the server process in daemon mode
daytona server [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Skip the confirmation prompt |
--help | help for daytona |
daytona server config
Output local Daytona Server config
daytona server config [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona server configure
Configure Daytona Server
daytona server configure [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server logs
Output Daytona Server logs
daytona server logs [flags]
Flags
Long | Short | Description |
---|---|---|
--file | Read specific log file | |
--follow | -f | Follow logs |
--local | -l | Read local server log files |
--help | help for daytona |
daytona server logs list
Lists Daytona Server Log Files
daytona server logs list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server restart
Restarts the Daytona Server daemon
daytona server restart [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server runner
Manage runners
daytona server runner [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server runner create
Create a runner
daytona server runner create [flags]
Flags
Long | Short | Description |
---|---|---|
--name | -n | Runner name |
--help | help for daytona |
daytona server runner delete
Delete a runner
daytona server runner delete [RUNNER] [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona server runner list
List runners
daytona server runner list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona server runner logs
View runner logs
daytona server runner logs [RUNNER_ID] [flags]
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona |
daytona server start
Start the Daytona Server daemon
daytona server start [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server stop
Stops the Daytona Server daemon
daytona server stop [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona ssh
SSH into a workspace using the terminal
daytona ssh [WORKSPACE] [CMD...] [flags]
Flags
Long | Short | Description |
---|---|---|
--edit | -e | Edit the workspace’s SSH config |
--option | -o | Specify SSH options in KEY=VALUE format. |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona start
Start a workspace
daytona start [WORKSPACE]... [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Start all targets |
--code | -c | Open the target in the IDE after target start |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona stop
Stop a workspace
daytona stop [WORKSPACE]... [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Stop all targets |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona target-config
Manage target configs
daytona target-config [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target-config create
Create target config
daytona target-config create [flags]
Flags
Long | Short | Description |
---|---|---|
--file | -f | Path to JSON file for target configuration, use ’-’ to read from stdin |
--help | help for daytona |
daytona target-config delete
Deletes a target config
daytona target-config delete [TARGET_CONFIG] [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Confirm deletion of all targets without prompt |
--help | help for daytona |
daytona target-config list
List target configs
daytona target-config list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--show-options | -v | Show target options |
--help | help for daytona |
daytona target
Manage targets
daytona target [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target create
Create a target
daytona target create [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target delete
Delete a target
daytona target delete [TARGET]... [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Delete all targets |
--force | -f | Delete a target by force |
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona target info
Show target info
daytona target info [TARGET] [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--show-options | -v | Show target options |
--help | help for daytona |
daytona target list
List targets
daytona target list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--show-options | -v | Show target options |
--help | help for daytona |
daytona target logs
View the logs of a target
daytona target logs [TARGET] [flags]
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona |
daytona target restart
Restart a target
daytona target restart [TARGET] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target set-default
Set default target
daytona target set-default [TARGET] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target ssh
SSH into a target using the terminal
daytona target ssh [TARGET] [CMD...] [flags]
Flags
Long | Short | Description |
---|---|---|
--option | -o | Specify SSH options in KEY=VALUE format. |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona target start
Start a target
daytona target start [TARGET] [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Start all targets |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona target stop
Stop a target
daytona target stop [TARGET] [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Stop all targets |
--help | help for daytona |
daytona telemetry
Manage telemetry collection
daytona telemetry [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona telemetry disable
Disable telemetry collection
daytona telemetry disable [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona telemetry enable
Enable telemetry collection
daytona telemetry enable [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona template
Manage workspace templates
daytona template [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona template create
Create a workspace template
daytona template create [flags]
Flags
Long | Short | Description |
---|---|---|
--builder | Specify the builder (currently auto/devcontainer/none) | |
--custom-image | Create the workspace with the custom image passed as the flag value; Requires setting —custom-image-user flag as well | |
--custom-image-user | Create the workspace with the custom image user passed as the flag value; Requires setting —custom-image flag as well | |
--devcontainer-path | Automatically assign the devcontainer builder with the path passed as the flag value | |
--env | Specify environment variables (e.g. —env ‘KEY1=VALUE1’ —env ‘KEY2=VALUE2’ …‘) | |
--git-provider-config | Specify the Git provider configuration ID or alias | |
--label | Specify labels (e.g. —label ‘label.key1=VALUE1’ —label ‘label.key2=VALUE2’ …) | |
--manual | Manually enter the Git repository | |
--name | Specify the workspace template name | |
--help | help for daytona |
daytona template delete
Delete a workspace template
daytona template delete [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Delete all workspace templates |
--force | -f | Force delete prebuild |
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona template export
Export a workspace template
daytona template export [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Export all workspace templates |
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona template import
Import a workspace template from a JSON object
daytona template import [flags]
Flags
Long | Short | Description |
---|---|---|
--file | -f | Import workspace template from a JSON file. Use ’-’ to read from stdin. |
--help | help for daytona |
daytona template info
Show workspace template info
daytona template info [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona template list
Lists workspace templates
daytona template list [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona template set-default
Set workspace template info
daytona template set-default [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona template update
Update a workspace template
daytona template update [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona update
Update Daytona CLI
daytona update [flags]
Flags
Long | Short | Description |
---|---|---|
--version | -v | Version to update to |
--help | help for daytona |
daytona use
Use profile [PROFILE_NAME]
daytona use [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona version
Print the version number
daytona version [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona whoami
Display information about the active user
daytona whoami [flags]
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |