Skip to main content
CLI/pd env [pattern]
CLI command · v3.30.6

pd env [pattern]

Export environment variables for matching services.

Syntax

Run pd env [pattern] like this

pd env myapp
API spec

Command contract

Canonical command

pd env [pattern]

Reference route

/docs/cli/env

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 env [pattern] 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 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

Example 01

Run pd env [pattern] from a coordinated checkout

CLI
pd env myapp
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 env
open /docs/cli/env
Output
The help topic and docs route both describe pd env [pattern], including aliases, flags, and source provenance.