Feature Request: Look Up a Route’s Port
Summary
It would be helpful to have a command for locating an active route by name. A port-only flag would allow scripts to retrieve the assigned port without parsing human-readable output.
Use case
Docker containers sending outbound webhooks to a service running through Portless cannot use the service’s .localhost URL directly. They must connect to the host through an address such as host.docker.internal, but Portless dynamically assigns the service port.
Alternative workarounds
I almost made an external script that parses and glues together portless get and portless list but then I realized I should make a PR for this feature instead, because with updates, my parser would be bound to break.
Proposed solution
Add a portless find <name> command for locating an active route by name.
Include a --port-only option so scripts can retrieve the assigned port.
Source: vercel-labs/portless