wtm run url
This content is for v0.28. Switch to the latest version for up-to-date documentation.
Print where a job is reachable in a worktree
Synopsis
Section titled “Synopsis”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:
wtm run url [worktree] [flags]Examples
Section titled “Examples” 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 --rawOptions
Section titled “Options” -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 URLOptions 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)