Skip to content

Other

View as Markdown

This page documents the following commands. Global flags that apply to every command are listed under daytona.

CommandDescription
daytona completionGenerate the autocompletion script for the specified shell
daytona configRead and change CLI settings
daytona docsPrint the command reference (—full: every command, one page)
daytona versionPrint the CLI version

Generate the autocompletion script for the specified shell

Generate the autocompletion script for daytona for the specified shell. See each sub-command’s help for details on how to use the generated script.

Commands

CommandDescription
daytona completion bashGenerate the autocompletion script for bash
daytona completion fishGenerate the autocompletion script for fish
daytona completion powershellGenerate the autocompletion script for powershell
daytona completion zshGenerate the autocompletion script for zsh

Generate the autocompletion script for bash

Generate the autocompletion script for the bash shell.

This script depends on the ‘bash-completion’ package. If it is not installed already, you can install it via your OS’s package manager.

To load completions in your current shell session:

Terminal window
source <(daytona completion bash)

To load completions for every new session, execute once:

Linux

Terminal window
daytona completion bash > /etc/bash_completion.d/daytona

macOS

Terminal window
daytona completion bash > $(brew --prefix)/etc/bash_completion.d/daytona

You will need to start a new shell for this setup to take effect.

Terminal window
daytona completion bash

Flags

LongShortTypeDefaultDescription
--no-descriptionsbooldisable completion descriptions

Generate the autocompletion script for fish

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

Terminal window
daytona completion fish | source

To load completions for every new session, execute once:

Terminal window
daytona completion fish > ~/.config/fish/completions/daytona.fish

You will need to start a new shell for this setup to take effect.

Terminal window
daytona completion fish [flags]

Flags

LongShortTypeDefaultDescription
--no-descriptionsbooldisable completion descriptions

Generate the autocompletion script for powershell

To load completions in your current shell session:

Terminal window
daytona completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command to your powershell profile.

Terminal window
daytona completion powershell [flags]

Flags

LongShortTypeDefaultDescription
--no-descriptionsbooldisable completion descriptions

Generate the autocompletion script for zsh

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

Terminal window
echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

Terminal window
source <(daytona completion zsh)

To load completions for every new session, execute once:

Linux

Terminal window
daytona completion zsh > "${fpath[1]}/_daytona"

macOS

Terminal window
daytona completion zsh > $(brew --prefix)/share/zsh/site-functions/_daytona

You will need to start a new shell for this setup to take effect.

Terminal window
daytona completion zsh [flags]

Flags

LongShortTypeDefaultDescription
--no-descriptionsbooldisable completion descriptions

Read and change CLI settings

Commands

CommandDescription
daytona config getPrint a setting (confirm)
daytona config pathPrint the config directory
daytona config setChange a setting (confirm true|false — prompts before destructive verbs)

Print a setting (confirm)

Terminal window
daytona config get <key>

Print the config directory

Terminal window
daytona config path

Change a setting (confirm true|false — prompts before destructive verbs)

Terminal window
daytona config set <key> <value>

Print the command reference (—full: every command, one page)

Prints documentation for the CLI. With —full the entire command tree is rendered as Markdown on stdout — one page an agent or a human can read in a single pass. With —dir the same reference is written as one Markdown file per command.

Terminal window
daytona docs [flags]

Flags

LongShortTypeDefaultDescription
--dirstringwrite one Markdown file per command into this directory
--fullboolrender the whole command tree as one Markdown page

Print the CLI version

Terminal window
daytona version