Skip to main content
CLI/pd ports
CLI command · v3.30.6

pd ports

List active or system port assignments, and clean up stale claims.

Syntax

Run pd ports like this

pd ports
API spec

Command contract

Canonical command

pd ports

Reference route

/docs/cli/ports

Reference group

Ports, Services, Projects, And Orchestration

Runtime path

Daemon client with direct-mode fallback where supported

Source

cli/commands/services.ts, cli/commands/projects.ts, cli/commands/orchestration.ts, cli/commands/integration.ts, cli/commands/dns.ts

Aliases

none

Output mode

human display with command-specific state changes

Page type

generated API spec from the source-backed catalog

See the command surfaces this reference keeps in play

This clip shows the daemon health check, command discovery, and message-loop patterns that recur across the CLI reference. Here it grounds the pd ports reference: daemon health, discovery, and message-loop patterns these pages keep pointing back to.

Usage patterns

Common ways this command shows up in practice

pd ports belongs to Ports, Services, Projects, And Orchestration. Claim deterministic ports, discover services, manage project records, start stacks, and publish readiness.

Daemon client with direct-mode fallback where supported. Validate live behavior from the daemon and handler source when changing this command.

Use this page as the stable public contract for pd ports; aliases resolve to the same contract.

Flags

Options that change command behavior

--system

--system is accepted by this command family; see the handler source for command-specific validation and side effects.

cleanup

Remove stale port records.

Examples

Example 01

Run pd ports from a coordinated checkout

CLI
pd ports
Output
Prints the changed record or lookup result; use --json when you need the exact machine-readable shape.
Example 02

Find this command from the full CLI reference

CLI
pd help ports
open /docs/cli/ports
Output
The help topic and docs route both describe pd ports, including aliases, flags, and source provenance.