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
Synopsis
Section titled “Synopsis”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]Examples
Section titled “Examples” # 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 jsonOptions
Section titled “Options” -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 worktreeOptions inherited from parent commands
Section titled “Options inherited from parent commands” -q, --quiet Silence human output; errors and the exit code are unaffected, and --output json still emits its documentSEE ALSO
Section titled “SEE ALSO”- wtm run - Manage dev jobs (services + tasks)