Skip to content

wtm run open

Open a job's URL in the browser

Hand a job's URL to the desktop's own opener. [worktree] defaults to the current one, and is picked interactively when there is a terminal. A worktree publishing one URL opens it; when several jobs publish one, --job names it, and is required outside a fully interactive run — a picker never runs under a pipe, under --yes or in --output json mode.

wtm run open [worktree] [flags]
wtm run open
wtm run open feat/login --job web
# The port URL instead of the named one
wtm run open feat/login --job web --raw
-h, --help help for open
--job string Job whose URL to open (required when several jobs publish one, outside a fully interactive run)
--output string Output format: text or json (default "text")
--raw Open the port URL (http://localhost:<port>) instead of the named URL
-y, --yes Skip the pickers; --job is then required when several jobs publish a URL
-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)