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; --json parses each line
dash configShow combined config (including secrets!); --json adds the topology
dash docs [SECTION]Show dash configuration documentation
dash doctorDiagnose deploy readiness of servers, registry, proxy, ports, DNS, certificates, per-role readiness gates, and proxy drift; --json exits 1 on a failure
dash mcpServe read-only diagnostics to an AI agent over stdio (Model Context Protocol) — see Debugging
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. The --json flags and dash mcp are covered in Debugging.

--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; containers --json for every slot as a document
stale_containersDetect app stale containers
statsShow CPU, memory, network and block I/O of the app containers; --json
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
servicesShow what dash-proxy routes for this deploy per proxy host and on the load balancer; --json
driftCompare the running containers with the proxy and load balancer targets; --json
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
stats [NAME]Show CPU, memory, network and block I/O of an accessory (NAME=all for every one); --json
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

dash scale#

Change how many containers of a role run, without a deploy.

SubcommandWhat it does
set ROLE COUNTRun COUNT containers of ROLE across its hosts, within its replicas bounds
status [ROLE]Show the containers of each role per host; --json for a document

The count is in containers across the role's hosts, spread evenly within each host's replicas bounds, at the version already running. It takes the deploy lock, and the next deploy keeps it. dash-only — see Replicas.

dash autoscale#

Hold each scheduled or signalled role at its target, and read what the controller decided.

SubcommandWhat it does
runRun the controller: every interval, scale each role with a scale/schedule or scale/signal toward its target; --once, --dry-run, --metrics-port, --record, --takeover
explain ROLEEvaluate ROLE as the next tick would, with every input, without acting; --json
signal ROLERead one live sample of ROLE's signal and each guard, with latencies, from this machine; --json
simulate --samples FILEReplay a --record file with deploy.yml's thresholds now: every simulated action, a summary per role; --roles, --json
history [ROLE]Show the controller's last decisions; --lines, --json
statusShow which controller runs, when it last ticked, and the paused roles; --json
pause ROLEKeep the controller off ROLE, for good or --for a while (30m, 2h, 1d)
resume ROLELet the controller scale ROLE again

The controller scales through dash scale set, under the deploy lock, and keeps its heartbeat, decision log and pauses on one host (autoscale.controller, or the primary host without it), so every operator's checkout reads the same state. How to run it, and the keys it reads, are in Autoscale and under scale in Roles. dash-only.

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 server statsShow load, memory, swap, disk and uptime of the servers; --json
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; status --json
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] [--json]Print the last saved deploy report, or a trend over the last N; --json for the reports themselves
dash report pathPrint the directory saved reports are written to