Overview
Thelist command displays all currently registered routes in the Portless proxy. This includes both routes created by running apps and static aliases.
Syntax
Output Format
Each route is displayed on a single line with the following information:- Public URL - The full URL to access the service (e.g.
http://myapp.localhost:1355) - Target - The local port where the service is listening (e.g.
localhost:4123) - Status - Either
(pid XXXX)for running processes or(alias)for static routes
Examples
Basic Output
No Routes
If no routes are registered:HTTPS Proxy
When the proxy is running with--https, URLs show https:// instead of http://:
Route Types
Regular Routes (Process-Tracked)
Routes created byportless run or portless <name> show the process ID:
- Automatically removed when the process exits
- Tracked by PID for lifecycle management
Static Aliases
Routes created byportless alias show (alias):
- Persist until explicitly removed with
portless alias --remove - Not tied to any process (PID is 0)
Use Cases
Check What’s Running
Quickly see which services are accessible through the proxy:Debug Route Conflicts
If you get a route conflict error, uselist to see which process owns the route:
Verify Aliases
Confirm that your static aliases are registered:Monorepo Overview
See all services running in your monorepo:Related Commands
portless run- Start an app with inferred nameportless <name>- Start an app with explicit nameportless alias- Create a static routeportless proxy start- Start the proxy server
Exit Codes
- 0 - Success (routes displayed or “no routes” message shown)