Skip to content

wtm run logs

This content is for v0.28. Switch to the latest version for up-to-date documentation.

Attach to a job's output

Open the run view on [worktree]'s jobs — the current worktree when omitted, picked interactively when there is a terminal. --job focuses one of them; without it, every job is shown. Leaving the view detaches; the jobs keep running. Without a terminal, every job's output is written as prefixed lines instead. --output json replays each job's last 1000 lines as [{branch, path, lines: [{job, at, text}]}], one entry per worktree, and never attaches.

wtm run logs [worktree...] [flags]
# Reopen the run view on this worktree's jobs
wtm run logs
wtm run logs feat/login --job api
# The last 1000 lines of each job, as JSON
wtm run logs feat/login --output json
-h, --help help for logs
--job string Focus a single job instead of showing them all
--output string Output format: text or json (default "text")
-y, --yes Skip all prompts; shows every job of the current worktree
-q, --quiet Silence human output; errors and the exit code are unaffected, and --output json still emits its document
  • wtm run - Manage dev jobs (services + tasks)