Skip to content

wtm run url

Print where a job is reachable in a worktree

Write a job's URL on stdout and nothing else, for $(…). [worktree] defaults to the current one, and no picker ever opens here — an ambiguity is an error naming --job. The URL is the named URL the proxy serves (http://api.feat-x.myrepo.localhost); --raw prints the port URL instead (http://localhost:), which every OS resolves and no proxy has to serve.

wtm run url [worktree] [flags]
wtm run url --job api
curl "$(wtm run url feat/login --job api)/health"
# The port URL, which needs no proxy
wtm run url feat/login --job api --raw
-h, --help help for url
--job string Job whose URL to print (required when several jobs publish one)
--output string Output format: text or json (default "text")
--raw Print the port URL (http://localhost:<port>) instead of the named 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)