pier_
Reference

pier set

Change a resource's config

pier set <command>

Change a resource's config.

Subcommands

pier set app

pier set app [<app>] [flags]

Change an app's config.

ArgumentRequiredDescription
<app>noApp ref (slug or slug/target)
FlagValueDefaultDescription
--planSTRINGNew plan
--replicasINTNew replica count (fixed scaling; XOR with --autoscale)
--autoscaleSTRINGAutoscale range min-max (e.g. 1-4), or 'off' to return to fixed
--triggerTRIGGER,...Autoscale trigger type:value (cpu:70, memory:80, rps:50, latency:250ms); repeatable
--idle-afterSTRINGZero-traffic window before scale-to-zero (with --autoscale 0-N)
--imageSTRINGDeploy from a static image (switches off build_context)
--portINTContainer port (image-sourced apps only)
--build-contextSTRINGDeploy by building a code path, relative to pier.yaml (switches off image)
-y, --yesSkip confirmation prompt
--stageWrite the change to pier.yaml only — apply later with 'pier deploy'

pier set site

pier set site [<site>] [flags]

Change a site's config.

ArgumentRequiredDescription
<site>noSite ref (slug or slug/target)
FlagValueDefaultDescription
--frameworkSTRINGNew framework (e.g. static, nextjs-static, astro, vite, hugo)
--build-commandSTRINGNew build command
--output-dirSTRINGNew output directory
-y, --yesSkip confirmation prompt
--stageWrite the change to pier.yaml only — apply later with 'pier deploy'

pier set pg

pier set pg [<postgres>] [flags]

Change a Postgres instance's config.

ArgumentRequiredDescription
<postgres>noPostgres name or slug
FlagValueDefaultDescription
--planSTRINGNew plan
--replicasINTNew replica count
--pg-versionSTRINGNew Postgres major version (e.g. 17)
-y, --yesSkip confirmation prompt
--stageWrite the change to pier.yaml only — apply later with 'pier deploy'

pier set bucket

pier set bucket [<bucket>] [flags]

Change a bucket's config.

ArgumentRequiredDescription
<bucket>noBucket name or slug
FlagValueDefaultDescription
--access""Access level: public or private
-y, --yesSkip confirmation prompt
--stageWrite the change to pier.yaml only — apply later with 'pier deploy'

pier set volume

pier set volume [<volume>] [flags]

Change a volume's config.

ArgumentRequiredDescription
<volume>noVolume name, slug, or ID
FlagValueDefaultDescription
--size""New size (e.g. 5GB, 10GB)
-a, --appSTRINGBind to an app (slug or slug/target), moving any existing binding
--mountSTRINGMount path inside the app (required with --app non-interactively)
--detachRemove the volume's app binding
-y, --yesSkip confirmation
--stageWrite the change to pier.yaml only — apply later with 'pier deploy'

Global flags apply to every command.

On this page