pier_
Reference

CLI reference

Every pier command in the five help groups, with the global flags

Generated from the CLI's own command tree, so it cannot disagree with pier --help. One page per top-level command; subcommands are sections on that page. The whole reference on one page: all commands.

Global flags

FlagValueDefaultDescription
-v, --versionPrint version
-j, --jsonOutput as JSON
--no-colorDisable colored output (env NO_COLOR)
-w, --workspaceSTRINGOverride default workspace (name or ID)
-p, --projectSTRINGOverride default project (name, slug, or ID) (env PIER_PROJECT)
-e, --envSTRINGTarget this environment for this command only (slug); use 'pier use' to switch
--profileSTRINGUse a named session profile for this invocation (e.g. local, dev) (env PIER_PROFILE)
--no-stateIgnore saved selections, always prompt

Inspect the environment

CommandDoes
pier statusProject state, resource counts, config drift
pier logsRead or follow logs for an app, a Postgres, or the whole environment
pier eventsShow or watch events for a resource, the environment, the project or the workspace
pier monitorMonitor a resource or the whole environment: live snapshot, --range summary, --metric drill-down
pier deploysDeploy history (apps + sites), incl. build logs
pier lsWhat's in the environment; a kind (apps, sites, pg, buckets, volumes, domains) narrows it
pier infoOne resource in full: an app or site with its targets, one target, a Postgres, bucket, volume or domain

Change the environment

CommandDoes
pier applyConverge pier.yaml: add, set and remove resources — never rolls a workload
pier deployBuild and roll changed apps and sites (implies apply)
pier addAdd a resource
pier setChange a resource's config
pier rmRemove a resource
pier trashRemoved resources in their recovery window: list, restore, purge
pier copyCopy a resource to another environment
pier renameRename a resource in place (non-destructive)
pier promoteMake a target the primary of its app or site
pier restartRestart an app or a Postgres instance
pier rollbackRoll an app or site back to a previous deploy
pier pausePause a resource, environment, project or workspace (recoverable)
pier resumeResume a paused resource, environment, project or workspace

Connect & data

CommandDoes
pier sshOpen a shell in a running app
pier psqlOpen a psql shell to a Postgres instance
pier varsEnvironment variables
pier routesSite routing rules
pier pgPostgres tools
pier objectsBucket objects (data plane)
pier snapshotsVolume snapshots
pier backupsPostgres backups
pier githubGitHub push-to-deploy
pier devRun the current environment locally (docker)

Project & scope

CommandDoes
pier configpier.yaml lifecycle: init, sync, diff, validate
pier useSwitch the active environment
pier projectsProjects: list, add, inspect, remove, pause, switch
pier environmentsEnvironments: list, add, pause (switch with 'pier use')
pier workspacesWorkspaces: switch, pause, resume

CLI & account

CommandDoes
pier loginAuthenticate with the controller
pier logoutLog out and clear session
pier whoamiShow current user
pier profilesSession profiles (one login per controller)
pier billingBilling state and overage cap
pier ssh-keyGenerate SSH certificate for shell access
pier upgradeUpgrade the CLI to the latest version
pier uninstallUninstall the Pier CLI and remove all data

On this page