All apps/dstack

dstack

dstack

ML workflow orchestration system designed for reproducibility and collaboration

Runs as dstack|macOS, Linux, Windows|dstack.ai

Command form

ai-draft · 4 tasks · 22 fields

Common dstack jobs: apply a configuration, list runs, show logs and stop a run. Configuration-specific apply options, fleets, gateways, volumes and secrets are not covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui dstack

dstack apply

Apply a configuration
Apply a configurationExample values, fixed in this page — nothing here reaches a terminal
Basic
Configuration file
file
Project
string
Do not ask for confirmation
--yes
Detach after submitting
--detach
TasksEach one presets the form for one job
Apply a configuration
fileprojectyesdetach
ParametersOnly these flags are editable in the form
Configuration file
Defaults to .dstack.yml in the current directory.
path
--file-f
Project
string
--project
Do not ask for confirmation
boolean
--yes-y
Detach after submitting
boolean
--detach-d
Force apply
Apply even when no changes are detected.
boolean
--force
Show all plan properties
boolean
--verbose-v

dstack ps

List runs
List runsExample values, fixed in this page — nothing here reaches a terminal
Basic
Show all runs
--all
Last N runs
integer
Watch in real time
--watch
JSON output
--json
TasksEach one presets the form for one job
List runs
alllastwatchjson
ParametersOnly these flags are editable in the form
Project
string
--project
Show all runs
boolean
--all-a
Last N runs
integer
--last-n
Verbose
boolean
--verbose-v
Watch in real time
boolean
--watch-w
JSON output
boolean
--json

dstack logs

Show run logs
Show run logsExample values, fixed in this page — nothing here reaches a terminal
Basic
Run name*
string
Since
string
Diagnostic logs
--diagnose
TasksEach one presets the form for one job
Show logs
run_namesincediagnose
ParametersOnly these flags are editable in the form
Run name
string · positional 0
Since
A duration such as 10s, 5m, 1d, or an RFC 3339 timestamp.
string
--since
Diagnostic logs
boolean
--diagnose-d
Replica number
integer
--replica
Job number
integer
--job
Project
string
--project

dstack stop

Stop a run
Stop a runExample values, fixed in this page — nothing here reaches a terminal
Basic
Run name*
string
Do not ask for confirmation
--yes
TasksEach one presets the form for one job
Stop a run
run_nameyes
ParametersOnly these flags are editable in the form
Run name
string · positional 0
Abort instead of stopping gracefully
boolean
--abort-x
Do not ask for confirmation
boolean
--yes-y
Project
string
--project
SourcesEvery flag above is checked against these
help
Usage: dstack apply [--project NAME] [-h [TYPE]] [-f FILE] [-y] [--force] [-d] --project NAME The name of the project. Defaults to $DSTACK_PROJECT -f, --file FILE The path to the configuration file. Specify - to read -y, --yes Do not ask for confirmation --force Force apply when no changes detected -d, --detach Exit…
helpdstack apply --help

dstack.ai

help
Usage: dstack ps [-h] [--project NAME] [-a] [-v] [-w] [-n LAST] --project NAME The name of the project. Defaults to $DSTACK_PROJECT -a, --all Show all runs. By default, it only shows unfinished -v, --verbose Show more information about runs -w, --watch Watch statuses of runs in realtime -n, --last LAST Sho…
helpdstack ps --help

dstack.ai

help
Usage: dstack logs [-h] [--project NAME] [-d] [--replica REPLICA] [--job JOB] [--since SINCE] run_name --project NAME The name of the project. Defaults to $DSTACK_PROJECT -d, --diagnose Show run diagnostic logs --replica REPLICA The replica number. Defaults to 0. --job JOB The job number inside…
helpdstack logs --help

dstack.ai

help
Usage: dstack stop [-h] [--project NAME] [-x] [-y] run_name --project NAME The name of the project. Defaults to $DSTACK_PROJECT -x, --abort -y, --yes
helpdstack stop --help

dstack.ai

Before it fills your prompt, Otty checks the installed dstack against its version. A form that does not match your version is not offered.