Skip to content

CLI

The daytona command-line tool provides access to Daytona’s core features. You can use the daytona tool for the following operations:

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

Terminal window
daytona [flags]

Flags

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

daytona api-key

Api Key commands

Terminal window
daytona api-key [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona api-key generate

Generate a new API key

Terminal window
daytona api-key generate [NAME] [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona api-key list

List API keys

Terminal window
daytona api-key list [flags]

Flags

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

daytona api-key revoke

Revoke an API key

Terminal window
daytona api-key revoke [NAME] [flags]

Flags

LongShortDescription
--yes-ySkip confirmation prompt
--helphelp for 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 build

Manage builds

Terminal window
daytona build [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona build delete

Delete a build

Terminal window
daytona build delete [BUILD] [flags]

Flags

LongShortDescription
--all-aDelete ALL builds
--force-fForce delete build
--prebuild-idDelete ALL builds from prebuild
--helphelp for daytona

daytona build info

Show build info

Terminal window
daytona build info [BUILD] [flags]

Flags

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

daytona build list

List all builds

Terminal window
daytona build list [flags]

Flags

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

daytona build logs

View logs for build

Terminal window
daytona build logs [flags]

Flags

LongShortDescription
--follow-fFollow logs
--helphelp for daytona

daytona build run

Run a build from a project config

Terminal window
daytona build run [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona code

Open a workspace in your preferred IDE

Terminal window
daytona code [WORKSPACE] [PROJECT] [flags]

Flags

LongShortDescription
--ide-iSpecify the IDE (vscode, browser, cursor, ssh, jupyter, fleet, zed, clion, goland, intellij, phpstorm, pycharm, rider, rubymine, webstorm)
--yes-yAutomatically confirm any prompts
--helphelp for daytona

daytona config

Output Daytona configuration

Terminal window
daytona config [flags]

Flags

LongShortDescription
--format-fOutput format. Must be one of (yaml, json)
--show-api-keys-kShow API keys
--helphelp for daytona

daytona container-registry

Manage container registries

Terminal window
daytona container-registry [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona container-registry delete

Delete a container registry

Terminal window
daytona container-registry delete [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona container-registry list

Lists container registries

Terminal window
daytona container-registry list [flags]

Flags

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

daytona container-registry set

Set container registry

Terminal window
daytona container-registry set [flags]

Flags

LongShortDescription
--password-pPassword
--server-sServer
--username-uUsername
--helphelp for daytona

daytona create

Create a workspace

Terminal window
daytona create [REPOSITORY_URL | PROJECT_CONFIG_NAME]... [flags]

Flags

LongShortDescription
--blankCreate a blank project without using existing configurations
--branchSpecify the Git branches to use in the projects
--builderSpecify the builder (currently auto/devcontainer/none)
--custom-imageCreate the project with the custom image passed as the flag value; Requires setting —custom-image-user flag as well
--custom-image-userCreate the project with the custom image user passed as the flag value; Requires setting —custom-image flag as well
--devcontainer-pathAutomatically assign the devcontainer builder with the path passed as the flag value
--envSpecify environment variables (e.g. —env ‘KEY1=VALUE1’ —env ‘KEY2=VALUE2’ …‘)
--git-provider-configSpecify the Git provider configuration ID or alias
--ide-iSpecify the IDE (vscode, browser, cursor, ssh, jupyter, fleet, zed, clion, goland, intellij, phpstorm, pycharm, rider, rubymine, webstorm)
--manualManually enter the Git repository
--multi-projectWorkspace with multiple projects/repos
--nameSpecify the workspace name
--no-ide-nDo not open the workspace in the IDE after workspace creation
--target-tSpecify the target (e.g. ‘local’)
--yes-yAutomatically confirm any prompts
--helphelp for daytona

daytona delete

Delete a workspace

Terminal window
daytona delete [WORKSPACE] [flags]

Flags

LongShortDescription
--all-aDelete all workspaces
--force-fDelete a workspace by force
--yes-yConfirm deletion without prompt
--helphelp for daytona

daytona docs

Opens the Daytona documentation in your default browser.

Terminal window
daytona docs [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona env

Manage profile environment variables that are added to all workspaces

Terminal window
daytona env [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona env list

List profile environment variables

Terminal window
daytona env list [flags]

Flags

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

daytona env set

Set profile environment variables

Terminal window
daytona env set [KEY=VALUE]... [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona forward

Forward a port from a project to your local machine

Terminal window
daytona forward [PORT] [WORKSPACE] [PROJECT] [flags]

Flags

LongShortDescription
--publicShould be port be available publicly via an URL
--helphelp for daytona

daytona git-providers

Manage Git providers

Terminal window
daytona git-providers [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona git-providers add

Register a Git provider

Terminal window
daytona git-providers add [GIT_PROVIDER_ID] [flags]

Flags

LongShortDescription
--alias-aAlias
--base-api-url-bBase API Url
--signing-key-kSigning Key
--signing-method-sSigning Method (ssh, gpg)
--token-tPersonal Access Token
--username-uUsername
--helphelp for daytona

daytona git-providers delete

Unregister a Git provider

Terminal window
daytona git-providers delete [flags]

Flags

LongShortDescription
--all-aRemove all Git providers
--yes-yConfirm deletion without prompt
--helphelp for daytona

daytona git-providers list

Lists your registered Git providers

Terminal window
daytona git-providers list [flags]

Flags

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

daytona git-providers update

Update a Git provider

Terminal window
daytona git-providers update [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona ide

Choose the default IDE

Terminal window
daytona ide [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona info

Show workspace info

Terminal window
daytona info [WORKSPACE] [flags]

Flags

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

daytona list

List workspaces

Terminal window
daytona list [flags]

Flags

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

daytona logs

View logs for a workspace/project

Terminal window
daytona logs [WORKSPACE] [PROJECT_NAME] [flags]

Flags

LongShortDescription
--follow-fFollow logs
--workspace-wView workspace logs
--helphelp for daytona

daytona prebuild

Manage prebuilds

Terminal window
daytona prebuild [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona prebuild add

Add a prebuild configuration

Terminal window
daytona prebuild add [PROJECT_CONFIG] [flags]

Flags

LongShortDescription
--branch-bGit branch for the prebuild
--commit-interval-cCommit interval for running a prebuild - leave blank to ignore push events
--retention-rMaximum number of resulting builds stored at a time
--runRun the prebuild once after adding it
--trigger-files-tFull paths of files whose changes should explicitly trigger a prebuild
--helphelp for daytona

daytona prebuild delete

Delete a prebuild configuration

Terminal window
daytona prebuild delete [PROJECT_CONFIG] [PREBUILD] [flags]

Flags

LongShortDescription
--force-fForce delete prebuild
--helphelp for daytona

daytona prebuild info

Show prebuild configuration info

Terminal window
daytona prebuild info [flags]

Flags

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

daytona prebuild list

List prebuild configurations

Terminal window
daytona prebuild list [flags]

Flags

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

daytona prebuild update

Update a prebuild configuration

Terminal window
daytona prebuild update [PROJECT_CONFIG] [PREBUILD_ID] [flags]

Flags

LongShortDescription
--branch-bGit branch for the prebuild
--commit-interval-cCommit interval for running a prebuild - leave blank to ignore push events
--retention-rMaximum number of resulting builds stored at a time
--runRun the prebuild once after updating it
--trigger-files-tFull paths of files whose changes should explicitly trigger a prebuild
--helphelp for daytona

daytona profile

Manage profiles

Terminal window
daytona profile [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona profile add

Add profile

Terminal window
daytona profile add [flags]

Flags

LongShortDescription
--api-key-kAPI Key
--api-url-aAPI URL
--name-nProfile name
--helphelp for daytona

daytona profile delete

Delete profile [PROFILE_NAME]

Terminal window
daytona profile delete [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona profile edit

Edit profile [PROFILE_NAME]

Terminal window
daytona profile edit [flags]

Flags

LongShortDescription
--api-key-kAPI Key
--api-url-aAPI URL
--name-nProfile name
--helphelp for daytona

daytona profile list

List profiles

Terminal window
daytona profile list [flags]

Flags

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

daytona project-config

Manage project configs

Terminal window
daytona project-config [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona project-config add

Add a project config

Terminal window
daytona project-config add [flags]

Flags

LongShortDescription
--builderSpecify the builder (currently auto/devcontainer/none)
--custom-imageCreate the project with the custom image passed as the flag value; Requires setting —custom-image-user flag as well
--custom-image-userCreate the project with the custom image user passed as the flag value; Requires setting —custom-image flag as well
--devcontainer-pathAutomatically assign the devcontainer builder with the path passed as the flag value
--envSpecify environment variables (e.g. —env ‘KEY1=VALUE1’ —env ‘KEY2=VALUE2’ …‘)
--git-provider-configSpecify the Git provider configuration ID or alias
--manualManually enter the Git repository
--nameSpecify the project config name
--helphelp for daytona

daytona project-config delete

Delete a project config

Terminal window
daytona project-config delete [flags]

Flags

LongShortDescription
--all-aDelete all project configs
--force-fForce delete prebuild
--yes-yConfirm deletion without prompt
--helphelp for daytona

daytona project-config export

Export a project config

Terminal window
daytona project-config export [flags]

Flags

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

daytona project-config import

Import project config from JSON

Terminal window
daytona project-config import [flags]

Flags

LongShortDescription
--file-fImport project config from a JSON file. Use ’-’ to read from stdin.
--helphelp for daytona

daytona project-config info

Show project config info

Terminal window
daytona project-config info [flags]

Flags

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

daytona project-config list

Lists project configs

Terminal window
daytona project-config list [flags]

Flags

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

daytona project-config set-default

Set project config info

Terminal window
daytona project-config set-default [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona project-config update

Update a project config

Terminal window
daytona project-config update [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona provider

Manage providers

Terminal window
daytona provider [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona provider install

Install provider

Terminal window
daytona provider install [flags]

Flags

LongShortDescription
--yes-yAutomatically confirm any prompts
--helphelp for daytona

daytona provider list

List installed providers

Terminal window
daytona provider list [flags]

Flags

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

daytona provider uninstall

Uninstall provider

Terminal window
daytona provider uninstall [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona provider update

Update provider

Terminal window
daytona provider update [flags]

Flags

LongShortDescription
--all-aUpdate all providers
--helphelp for daytona

daytona purge

Purges all Daytona data from the current device

Terminal window
daytona purge [flags]

Flags

LongShortDescription
--force-fDelete all workspaces by force
--yes-yExecute purge without prompt
--helphelp for daytona

daytona restart

Restart a workspace

Terminal window
daytona restart [WORKSPACE] [flags]

Flags

LongShortDescription
--project-pRestart a single project in the workspace (project name)
--helphelp for daytona

daytona serve

Run the server process in the current terminal session

Terminal window
daytona serve [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona server

Start the server process in daemon mode

Terminal window
daytona server [flags]

Flags

LongShortDescription
--yes-ySkip the confirmation prompt
--helphelp for daytona

daytona server config

Output local Daytona Server config

Terminal window
daytona server config [flags]

Flags

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

daytona server configure

Configure Daytona Server

Terminal window
daytona server configure [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona server logs

Output Daytona Server logs

Terminal window
daytona server logs [flags]

Flags

LongShortDescription
--fileRead specific log file
--follow-fFollow logs
--local-lRead local server log files
--helphelp for daytona

daytona server logs list

Lists Daytona Server Log Files

Terminal window
daytona server logs list [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona server restart

Restarts the Daytona Server daemon

Terminal window
daytona server restart [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona server start

Start the Daytona Server daemon

Terminal window
daytona server start [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona server stop

Stops the Daytona Server daemon

Terminal window
daytona server stop [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona ssh

SSH into a project using the terminal

Terminal window
daytona ssh [WORKSPACE] [PROJECT] [CMD...] [flags]

Flags

LongShortDescription
--edit-eEdit the project’s SSH config
--option-oSpecify SSH options in KEY=VALUE format.
--yes-yAutomatically confirm any prompts
--helphelp for daytona

daytona start

Start a workspace

Terminal window
daytona start [WORKSPACE] [flags]

Flags

LongShortDescription
--all-aStart all workspaces
--code-cOpen the workspace in the IDE after workspace start
--project-pStart a single project in the workspace (project name)
--yes-yAutomatically confirm any prompts
--helphelp for daytona

daytona stop

Stop a workspace

Terminal window
daytona stop [WORKSPACE] [flags]

Flags

LongShortDescription
--all-aStop all workspaces
--project-pStop a single project in the workspace (project name)
--helphelp for daytona

daytona target

Manage provider targets

Terminal window
daytona target [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona target list

List targets

Terminal window
daytona target list [flags]

Flags

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

daytona target remove

Remove target

Terminal window
daytona target remove [TARGET_NAME] [flags]

Flags

LongShortDescription
--yes-yConfirm deletion of all workspaces without prompt
--helphelp for daytona

daytona target set-default

Set target to be used by default

Terminal window
daytona target set-default [TARGET_NAME] [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona target set

Set provider target

Terminal window
daytona target set [flags]

Flags

LongShortDescription
--file-fPath to JSON file for target configuration, use ’-’ to read from stdin
--helphelp for daytona

daytona telemetry

Manage telemetry collection

Terminal window
daytona telemetry [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona telemetry disable

Disable telemetry collection

Terminal window
daytona telemetry disable [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona telemetry enable

Enable telemetry collection

Terminal window
daytona telemetry enable [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona update

Update Daytona CLI

Terminal window
daytona update [flags]

Flags

LongShortDescription
--version-vVersion to update to
--helphelp for daytona

daytona use

Use profile [PROFILE_NAME]

Terminal window
daytona use [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona version

Print the version number

Terminal window
daytona version [flags]

Flags

LongShortDescription
--helphelp for daytona

daytona whoami

Display information about the active user

Terminal window
daytona whoami [flags]

Flags

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