Reference

Commands

The full dash CLI surface. Every command also answers --help.

Main commands#

CommandWhat it does
dash setupSetup all accessories, push the env, and deploy app to servers
dash deployDeploy app to servers
dash redeployDeploy app without bootstrapping servers, starting the proxy, or pruning
dash rollback [VERSION]Rollback app to VERSION
dash detailsShow details about all containers
dash auditShow audit log from servers
dash configShow combined config (including secrets!)
dash docs [SECTION]Show dash configuration documentation
dash doctorDiagnose deploy readiness of servers, registry, proxy, ports, DNS, certificates, and per-role readiness gates
dash initCreate config stub in config/deploy.yml and secrets stub in .dash
dash removeRemove the proxy, app, accessories, and registry session from servers
dash migrateMove this project's .kamal directory to .dash
dash upgradeUpgrade from Kamal 1.x to 2.0
dash versionShow dash version

setup for the first deploy, deploy for every one after, rollback when it goes wrong, doctor when you are not sure it will go right. dash docs prints the same configuration reference the Configuration pages here are generated from. migrate renames a kamal project's .kamal/ to .dash/ — see From kamal.

--rolling on upgrade, proxy reboot, and proxy upgrade walks the hosts one at a time instead of in parallel — see Rolling restarts.

dash app#

Manage application containers.

SubcommandWhat it does
bootBoot app on servers (or reboot app if already running)
start / stopStart or stop existing app containers on servers
exec [CMD...]Execute a custom command on servers within the app container
logsShow log lines from app on servers
detailsShow details about app containers
containers / imagesShow app containers / images on servers
stale_containersDetect app stale containers
live / maintenanceSwitch the app between live and maintenance mode
rollout <deploy|set|stop>Manage a canary rollout of a new version through the proxy — see Canary rollout
removeRemove app containers and images from servers
versionShow app version currently running on servers

dash proxy#

Manage the proxy and its dash-only features.

SubcommandWhat it does
bootBoot proxy on servers
boot_config <set|get|reset>Manage proxy boot configuration
rebootReboot proxy on servers (stop, remove, start new container)
start / stop / restartManage the existing proxy container on servers
detailsShow details about proxy container from servers
logsShow log lines from proxy on servers
loadbalancer <info|start|stop|logs|deploy>Manage the load balancer
cache <stats|purge>Manage the response cache
domains <refresh|list|stats>Manage dynamic TLS domains
export_certs LOCAL_PATHExport the TLS certificate store to a local archive (contains private keys)
import_certsImport certificates from a Traefik acme.json or an exported archive
removeRemove proxy container and image from servers

The loadbalancer, cache, domains, and export_certs/import_certs commands are dash-only — see Load balancing, Response caching, and SAN batching & wildcards.

dash accessory#

Manage accessories (db/redis/search).

SubcommandWhat it does
boot [NAME]Boot new accessory service on host (NAME=all boots all)
reboot [NAME]Reboot existing accessory on host
start / stop / restart [NAME]Manage the existing accessory container
details [NAME]Show details about accessory on host
exec [NAME] [CMD...]Execute a custom command within the accessory container
logs [NAME]Show log lines from accessory on host
remove [NAME]Remove accessory container, image and data directory from host
upgradeUpgrade accessories from Kamal 1.x to 2.0

dash build#

Build the application image.

SubcommandWhat it does
deliverBuild app and push app image to registry then pull image on servers
push / pullBuild and push the image to the registry / pull it onto servers
create / remove / detailsManage the buildx build setup
devBuild the working directory, tag it as dirty, push to the local image store

server, registry, lock, prune, secrets, report#

CommandWhat it does
dash server bootstrapSet up Docker to run dash apps
dash server execRun a custom command on the server
dash registry <setup|remove|login|logout>Manage the local registry or remote registry sessions
dash lock <status|acquire|release>Manage the deploy lock; --server targets the shared server lock instead
dash prune <all|images|containers>Prune old application images and stopped containers
dash secrets <fetch|extract|print>Helpers for extracting secrets from a vault
dash report [--last N]Print the last saved deploy report, or a trend over the last N
dash report pathPrint the directory saved reports are written to