Skip to main content

Overview

The list 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

Output:

No Routes

If no routes are registered:
Output:

HTTPS Proxy

When the proxy is running with --https, URLs show https:// instead of http://:
Output:

Route Types

Regular Routes (Process-Tracked)

Routes created by portless run or portless <name> show the process ID:
  • Automatically removed when the process exits
  • Tracked by PID for lifecycle management

Static Aliases

Routes created by portless 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, use list 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:
Output:

Exit Codes

  • 0 - Success (routes displayed or “no routes” message shown)