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 | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona api-key
Api Key commands
daytona api-key [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona api-key generate
Generate a new API key
daytona api-key generate [NAME] [flags]
Flags
Long | Short | Description |
---|---|---|
--save | -s | Save the API key to your default profile on this machine |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona api-key list
List API keys
daytona api-key list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona api-key revoke
Revoke an API key
daytona api-key revoke [NAME] [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Skip confirmation prompt |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona autocomplete
Adds completion script for your shell enviornment
daytona autocomplete [bash|zsh|fish|powershell] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona code
Open a workspace in your preferred IDE
daytona code [WORKSPACE] [PROJECT] [flags]
Flags
Long | Short | Description |
---|---|---|
--ide | -i | Specify the IDE (‘vscode’ or ‘browser’) |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona container-registry
Manage container registries
daytona container-registry [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona container-registry delete
Delete a container registry
daytona container-registry delete [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona container-registry list
Lists container registries
daytona container-registry list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona container-registry set
Set container registry
daytona container-registry set [flags]
Flags
Long | Short | Description |
---|---|---|
--password | -p | Password |
--server | -s | Server |
--username | -u | Username |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona create
Create a workspace
daytona create [REPOSITORY_URL] [flags]
Flags
Long | Short | Description |
---|---|---|
--code | -c | Open the workspace in the IDE after workspace creation |
--ide | -i | Specify the IDE (‘vscode’ or ‘browser’) |
--manual | Manually enter the git repositories | |
--multi-project | Workspace with multiple projects/repos | |
--name | Specify the workspace name | |
--provider | Specify the provider (e.g. ‘docker-provider’) | |
--target | -t | Specify the target (e.g. ‘local’) |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
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 | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona docs
Opens the Daytona documentation in your default browser.
daytona docs [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona env
Manage profile environment variables that are added to all workspaces
daytona env [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona env list
List profile environment variables
daytona env list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona env set
Set profile environment variables
daytona env set [KEY=VALUE]... [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona forward
Forward a port from a project to your local machine
daytona forward [PORT] [WORKSPACE] [PROJECT] [flags]
Flags
Long | Short | Description |
---|---|---|
--public | Should be port be available publicly via an URL | |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona git-providers
Manage Git providers
daytona git-providers [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona git-providers add
Register a Git providers
daytona git-providers add [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona git-providers delete
Unregister a Git providers
daytona git-providers delete [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona git-providers list
Lists your registered Git providers
daytona git-providers list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona ide
Choose the default IDE
daytona ide [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona info
Show workspace info
daytona info [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona list
List workspaces
daytona list [flags]
Flags
Long | Short | Description |
---|---|---|
--verbose | -v | Show verbose output |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona profile
Manage profiles
daytona profile [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona profile add
Add profile
daytona profile add [flags]
Flags
Long | Short | Description |
---|---|---|
--api-key | -k | API Key |
--api-url | -a | API URL |
--name | -n | Profile name |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona profile delete
Delete profile [PROFILE_NAME]
daytona profile delete [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona profile edit
Edit profile [PROFILE_NAME]
daytona profile edit [flags]
Flags
Long | Short | Description |
---|---|---|
--api-key | -k | API Key |
--api-url | -a | API URL |
--name | -n | Profile name |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona profile list
List profiles
daytona profile list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona provider
Manage providers
daytona provider [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona provider install
Install provider
daytona provider install [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona provider list
List installed providers
daytona provider list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona provider uninstall
Uninstall provider
daytona provider uninstall [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona provider update
Update provider
daytona provider update [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Update all providers |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona purge
Purges all Daytona data from the current device
daytona purge [flags]
Flags
Long | Short | Description |
---|---|---|
--force | -f | Delete all workspaces by force |
--yes | -y | Execute purge without prompt |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona serve
Run the server process in the current terminal session
daytona serve [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server
Start the server process in daemon mode
daytona server [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Execute purge without prompt |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server config
Output local Daytona Server config
daytona server config [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server configure
Configure Daytona Server
daytona server configure [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server logs
Output Daytona Server logs
daytona server logs [flags]
Flags
Long | Short | Description |
---|---|---|
--follow | -f | Follow logs |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server restart
Restarts the Daytona Server daemon
daytona server restart [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server start
Start the Daytona Server daemon
daytona server start [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona server stop
Stops the Daytona Server daemon
daytona server stop [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona ssh
SSH into a project using the terminal
daytona ssh [WORKSPACE] [PROJECT] [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona start
Start a workspace
daytona start [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Start all workspaces |
--project | -p | Start a single project in the workspace (project name) |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona stop
Stop a workspace
daytona stop [WORKSPACE] [flags]
Flags
Long | Short | Description |
---|---|---|
--all | -a | Stop all workspaces |
--project | -p | Stop a single project in the workspace (project name) |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona target
Manage provider targets
daytona target [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona target list
List targets
daytona target list [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona target remove
Remove target
daytona target remove [TARGET_NAME] [flags]
Flags
Long | Short | Description |
---|---|---|
--yes | -y | Confirm deletion of all workspaces without prompt |
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona target set
Set provider target
daytona target set [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona use
Set the active profile
daytona use [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona version
Print the version number
daytona version [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |
daytona whoami
Display information about the active user
daytona whoami [flags]
Flags
Long | Short | Description |
---|---|---|
--help | help for daytona | |
--output | -o | Output format. Must be one of (yaml, json) |