ReferenceCLIPg

nevia pg connect

Show a database's connection and password

nevia pg connect [FLAGS] [DATABASE]

  • Aliases: url

Pass --uri to print only the postgres:// URI, or --pooled for the pooled URI; with --json, the same field in its JSON document. The database must be ready or sleeping.

Arguments

  • [DATABASE] - Database ID or name (optional when the workspace has one database)

Options

  • --uri - Print only the connection URI (with --json, only connection.uri)
  • --pooled - Print only the pooled connection URI (with --json, only connection.pooler_uri)
  • --ca <FILE> - File to write the server CA certificate to (PEM)
  • -h, --help - Print help

On this page