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
--output-oOutput format. Must be one of (yaml, json)

daytona api-key

Api Key commands

Terminal window
daytona api-key [flags]

Flags

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

daytona api-key generate

Generate a new API key

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

Flags

LongShortDescription
--save-sSave the API key to your default profile on this machine
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

daytona api-key list

List API keys

Terminal window
daytona api-key list [flags]

Flags

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

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
--output-oOutput format. Must be one of (yaml, json)

daytona autocomplete

Adds completion script for your shell enviornment

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

Flags

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

daytona code

Open a workspace in your preferred IDE

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

Flags

LongShortDescription
--ide-iSpecify the IDE (‘vscode’ or ‘browser’)
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

daytona container-registry

Manage container registries

Terminal window
daytona container-registry [flags]

Flags

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

daytona container-registry delete

Delete a container registry

Terminal window
daytona container-registry delete [flags]

Flags

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

daytona container-registry list

Lists container registries

Terminal window
daytona container-registry list [flags]

Flags

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

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
--output-oOutput format. Must be one of (yaml, json)

daytona create

Create a workspace

Terminal window
daytona create [REPOSITORY_URL] [flags]

Flags

LongShortDescription
--code-cOpen the workspace in the IDE after workspace creation
--ide-iSpecify the IDE (‘vscode’ or ‘browser’)
--manualManually enter the git repositories
--multi-projectWorkspace with multiple projects/repos
--nameSpecify the workspace name
--providerSpecify the provider (e.g. ‘docker-provider’)
--target-tSpecify the target (e.g. ‘local’)
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

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
--output-oOutput format. Must be one of (yaml, json)

daytona docs

Opens the Daytona documentation in your default browser.

Terminal window
daytona docs [flags]

Flags

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

daytona env

Manage profile environment variables that are added to all workspaces

Terminal window
daytona env [flags]

Flags

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

daytona env list

List profile environment variables

Terminal window
daytona env list [flags]

Flags

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

daytona env set

Set profile environment variables

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

Flags

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

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
--output-oOutput format. Must be one of (yaml, json)

daytona git-providers

Manage Git providers

Terminal window
daytona git-providers [flags]

Flags

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

daytona git-providers add

Register a Git providers

Terminal window
daytona git-providers add [flags]

Flags

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

daytona git-providers delete

Unregister a Git providers

Terminal window
daytona git-providers delete [flags]

Flags

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

daytona git-providers list

Lists your registered Git providers

Terminal window
daytona git-providers list [flags]

Flags

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

daytona ide

Choose the default IDE

Terminal window
daytona ide [flags]

Flags

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

daytona info

Show workspace info

Terminal window
daytona info [WORKSPACE] [flags]

Flags

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

daytona list

List workspaces

Terminal window
daytona list [flags]

Flags

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

daytona profile

Manage profiles

Terminal window
daytona profile [flags]

Flags

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

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
--output-oOutput format. Must be one of (yaml, json)

daytona profile delete

Delete profile [PROFILE_NAME]

Terminal window
daytona profile delete [flags]

Flags

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

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
--output-oOutput format. Must be one of (yaml, json)

daytona profile list

List profiles

Terminal window
daytona profile list [flags]

Flags

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

daytona provider

Manage providers

Terminal window
daytona provider [flags]

Flags

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

daytona provider install

Install provider

Terminal window
daytona provider install [flags]

Flags

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

daytona provider list

List installed providers

Terminal window
daytona provider list [flags]

Flags

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

daytona provider uninstall

Uninstall provider

Terminal window
daytona provider uninstall [flags]

Flags

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

daytona provider update

Update provider

Terminal window
daytona provider update [flags]

Flags

LongShortDescription
--all-aUpdate all providers
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

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
--output-oOutput format. Must be one of (yaml, json)

daytona serve

Run the server process in the current terminal session

Terminal window
daytona serve [flags]

Flags

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

daytona server

Start the server process in daemon mode

Terminal window
daytona server [flags]

Flags

LongShortDescription
--yes-yExecute purge without prompt
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

daytona server config

Output local Daytona Server config

Terminal window
daytona server config [flags]

Flags

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

daytona server configure

Configure Daytona Server

Terminal window
daytona server configure [flags]

Flags

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

daytona server logs

Output Daytona Server logs

Terminal window
daytona server logs [flags]

Flags

LongShortDescription
--follow-fFollow logs
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

daytona server restart

Restarts the Daytona Server daemon

Terminal window
daytona server restart [flags]

Flags

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

daytona server start

Start the Daytona Server daemon

Terminal window
daytona server start [flags]

Flags

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

daytona server stop

Stops the Daytona Server daemon

Terminal window
daytona server stop [flags]

Flags

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

daytona ssh

SSH into a project using the terminal

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

Flags

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

daytona start

Start a workspace

Terminal window
daytona start [WORKSPACE] [flags]

Flags

LongShortDescription
--all-aStart all workspaces
--project-pStart a single project in the workspace (project name)
--helphelp for daytona
--output-oOutput format. Must be one of (yaml, json)

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
--output-oOutput format. Must be one of (yaml, json)

daytona target

Manage provider targets

Terminal window
daytona target [flags]

Flags

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

daytona target list

List targets

Terminal window
daytona target list [flags]

Flags

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

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
--output-oOutput format. Must be one of (yaml, json)

daytona target set

Set provider target

Terminal window
daytona target set [flags]

Flags

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

daytona use

Set the active profile

Terminal window
daytona use [flags]

Flags

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

daytona version

Print the version number

Terminal window
daytona version [flags]

Flags

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

daytona whoami

Display information about the active user

Terminal window
daytona whoami [flags]

Flags

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