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
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--version | -v | Display the version of Daytona |
daytona api-key
Api Key commands
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona api-key generate
Generate a new API key
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona api-key list
List API keys
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona api-key revoke
Revoke an API key
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Skip confirmation prompt |
--help | help for daytona |
daytona autocomplete
Adds a completion script for your shell environment
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona build
Manage builds
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona build delete
Delete a build
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
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona build list
List all builds
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
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona |
daytona build run
Run a build from a project config
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona code
Open a workspace in your preferred IDE
Flags
Long | Short | Description |
---|---|---|
--ide | -i | Specify the IDE (vscode, browser, cursor, ssh, jupyter, fleet, zed, clion, goland, intellij, phpstorm, pycharm, rider, rubymine, webstorm) |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona config
Output Daytona configuration
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 container-registry
Manage container registries
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona container-registry delete
Delete a container registry
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona container-registry list
Lists container registries
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona container-registry set
Set container registry
Flags
Long | Short | Description |
---|---|---|
--password | -p | Password |
--server | -s | Server |
--username | -u | Username |
--help | help for daytona |
daytona create
Create a workspace
Flags
Long | Short | Description |
---|---|---|
--blank | Create a blank project without using existing configurations | |
--branch | Specify the Git branches to use in the projects | |
--builder | Specify the builder (currently auto/devcontainer/none) | |
--custom-image | Create the project with the custom image passed as the flag value; Requires setting —custom-image-user flag as well | |
--custom-image-user | Create the project 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, browser, cursor, ssh, jupyter, fleet, zed, clion, goland, intellij, phpstorm, pycharm, rider, rubymine, webstorm) |
--manual | Manually enter the Git repository | |
--multi-project | Workspace with multiple projects/repos | |
--name | Specify the workspace name | |
--no-ide | -n | Do not open the workspace in the IDE after workspace creation |
--target | -t | Specify the target (e.g. ‘local’) |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona delete
Delete a workspace
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.
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona env
Manage profile environment variables that are added to all workspaces
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona env list
List profile environment variables
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona env set
Set profile environment variables
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona forward
Forward a port from a project to your local machine
Flags
Long | Short | Description |
---|---|---|
--public | Should be port be available publicly via an URL | |
--help | help for daytona |
daytona git-providers
Manage Git providers
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona git-providers add
Register a Git provider
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-providers delete
Unregister a Git provider
Flags
Long | Short | Description |
---|---|---|
--all | -a | Remove all Git providers |
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona git-providers list
Lists your registered Git providers
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona git-providers update
Update a Git provider
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona ide
Choose the default IDE
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona info
Show workspace info
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona list
List workspaces
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--verbose | -v | Show verbose output |
--help | help for daytona |
daytona logs
View logs for a workspace/project
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--workspace | -w | View workspace logs |
--help | help for daytona |
daytona prebuild
Manage prebuilds
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona prebuild add
Add a prebuild configuration
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
Flags
Long | Short | Description |
---|---|---|
--force | -f | Force delete prebuild |
--help | help for daytona |
daytona prebuild info
Show prebuild configuration info
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona prebuild list
List prebuild configurations
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
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
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona profile add
Add profile
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 profile [PROFILE_NAME]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona profile edit
Edit profile [PROFILE_NAME]
Flags
Long | Short | Description |
---|---|---|
--api-key | -k | API Key |
--api-url | -a | API URL |
--name | -n | Profile name |
--help | help for daytona |
daytona profile list
List profiles
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona project-config
Manage project configs
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona project-config add
Add a project config
Flags
Long | Short | Description |
---|---|---|
--builder | Specify the builder (currently auto/devcontainer/none) | |
--custom-image | Create the project with the custom image passed as the flag value; Requires setting —custom-image-user flag as well | |
--custom-image-user | Create the project 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 | |
--manual | Manually enter the Git repository | |
--name | Specify the project config name | |
--help | help for daytona |
daytona project-config delete
Delete a project config
Flags
Long | Short | Description |
---|---|---|
--all | -a | Delete all project configs |
--force | -f | Force delete prebuild |
--yes | -y | Confirm deletion without prompt |
--help | help for daytona |
daytona project-config export
Export a project config
Flags
Long | Short | Description |
---|---|---|
--all | -a | Export all project configs |
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona project-config import
Import project config from JSON
Flags
Long | Short | Description |
---|---|---|
--file | -f | Import project config from a JSON file. Use ’-’ to read from stdin. |
--help | help for daytona |
daytona project-config info
Show project config info
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona project-config list
Lists project configs
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona project-config set-default
Set project config info
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona project-config update
Update a project config
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona provider
Manage providers
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona provider install
Install provider
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona provider list
List installed providers
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona provider uninstall
Uninstall provider
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona provider update
Update provider
Flags
Long | Short | Description |
---|---|---|
--all | -a | Update all providers |
--help | help for daytona |
daytona purge
Purges all Daytona data from the current device
Flags
Long | Short | Description |
---|---|---|
--force | -f | Delete all workspaces by force |
--yes | -y | Execute purge without prompt |
--help | help for daytona |
daytona restart
Restart a workspace
Flags
Long | Short | Description |
---|---|---|
--project | -p | Restart a single project in the workspace (project name) |
--help | help for daytona |
daytona serve
Run the server process in the current terminal session
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server
Start the server process in daemon mode
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Skip the confirmation prompt |
--help | help for daytona |
daytona server config
Output local Daytona Server config
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona server configure
Configure Daytona Server
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server logs
Output Daytona Server logs
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
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server restart
Restarts the Daytona Server daemon
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server start
Start the Daytona Server daemon
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona server stop
Stops the Daytona Server daemon
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona ssh
SSH into a project using the terminal
Flags
Long | Short | Description |
---|---|---|
--edit | -e | Edit the project’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
Flags
Long | Short | Description |
---|---|---|
--all | -a | Start all workspaces |
--code | -c | Open the workspace in the IDE after workspace start |
--project | -p | Start a single project in the workspace (project name) |
--yes | -y | Automatically confirm any prompts |
--help | help for daytona |
daytona stop
Stop a workspace
Flags
Long | Short | Description |
---|---|---|
--all | -a | Stop all workspaces |
--project | -p | Stop a single project in the workspace (project name) |
--help | help for daytona |
daytona target
Manage provider targets
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target list
List targets
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |
daytona target remove
Remove target
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Confirm deletion of all workspaces without prompt |
--help | help for daytona |
daytona target set-default
Set target to be used by default
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona target set
Set provider target
Flags
Long | Short | Description |
---|---|---|
--file | -f | Path to JSON file for target configuration, use ’-’ to read from stdin |
--help | help for daytona |
daytona telemetry
Manage telemetry collection
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona telemetry disable
Disable telemetry collection
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona telemetry enable
Enable telemetry collection
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona update
Update Daytona CLI
Flags
Long | Short | Description |
---|---|---|
--version | -v | Version to update to |
--help | help for daytona |
daytona use
Use profile [PROFILE_NAME]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona version
Print the version number
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona |
daytona whoami
Display information about the active user
Flags
Long | Short | Description |
---|---|---|
--format | -f | Output format. Must be one of (yaml, json) |
--help | help for daytona |