pier_
Reference

pier pg

Postgres tools

pier pg <command>

Postgres tools.

Subcommands

pier pg credentials

pier pg credentials [<postgres>] [flags]

Show connection credentials.

ArgumentRequiredDescription
<postgres>noPostgres name, slug, or ID
FlagValueDefaultDescription
--uriPrint connection URI only (pipeable)

pier pg plans

pier pg plans

List available Postgres plans.

pier pg databases

pier pg databases [<postgres>]

List logical databases inside an instance.

ArgumentRequiredDescription
<postgres>noPostgres instance (name or name/target)

pier pg tables

pier pg tables [<postgres>] [<database>] [flags]

List tables in a logical database.

ArgumentRequiredDescription
<postgres>noPostgres instance (name or name/target)
<database>noLogical database inside the cluster (default: the instance's default)
FlagValueDefaultDescription
--schemaSTRINGFilter by schema (default: all non-system schemas)
--limit100100Limit number of rows returned
--csvOutput as CSV (no formatting)

pier pg query

pier pg query [<postgres>] [<database>] [<sql>] [flags]

Run a one-off SQL query.

ArgumentRequiredDescription
<postgres>noPostgres instance (name or name/target)
<database>noLogical database inside the cluster (default: the instance's default)
<sql>noSQL to execute (use --file to read from a file or stdin)
FlagValueDefaultDescription
--fileSTRINGRead SQL from a file (use - for stdin)
--limitINTMax rows returned before truncation
--csvOutput as CSV

Global flags apply to every command.

On this page