pd env [pattern]
Export environment variables for matching services.
Run pd env [pattern] like this
pd env myappCommand contract
pd env [pattern]
/docs/cli/env
Ports, Services, Projects, And Orchestration
Daemon client with direct-mode fallback where supported
cli/commands/services.ts, cli/commands/projects.ts, cli/commands/orchestration.ts, cli/commands/integration.ts, cli/commands/dns.ts
none
human display with command-specific state changes
generated API spec from the source-backed catalog

This clip shows the daemon health check, command discovery, and message-loop patterns that recur across the CLI reference. Here it grounds the pd env [pattern] reference: daemon health, discovery, and message-loop patterns these pages keep pointing back to.
Common ways this command shows up in practice
pd env [pattern] 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 env [pattern]; aliases resolve to the same contract.
Examples
Run pd env [pattern] from a coordinated checkout
pd env myapp
Prints the changed record or lookup result; use --json when you need the exact machine-readable shape.
Find this command from the full CLI reference
pd help envopen /docs/cli/env
The help topic and docs route both describe pd env [pattern], including aliases, flags, and source provenance.