Skip to content

dstack logs

This command shows the output of a given run.

Usage

$ dstack logs --help
Usage: dstack logs [-h] [--project NAME] [-d] [-a]
                   [--ssh-identity SSH_PRIVATE_KEY] [--replica REPLICA]
                   [--job JOB]
                   run_name

Positional Arguments:
  run_name

Options:
  -h, --help            Show this help message and exit
  --project NAME        The name of the project. Defaults to $DSTACK_PROJECT
  -d, --diagnose        Show run diagnostic logs
  -a, --attach          Set up an SSH tunnel and print logs as they follow
  --ssh-identity SSH_PRIVATE_KEY
                        The private SSH key path for SSH tunneling
  --replica REPLICA     The relica number. Defaults to 0.
  --job JOB             The job number inside the replica. Defaults to 0.