Skip to content

vibepg creds ​

Two subcommands for managing the password vibepg stores in your OS keychain.

creds show ​

Synopsis ​

bash
vibepg creds show <name> [--password-only] [--no-confirm]

Description ​

Display credentials for an instance: name, host, port, db, user, password, and a ready-to-paste postgres:// URL. Prompts for confirmation before printing the password unless --no-confirm is set.

Arguments ​

NameRequiredDescription
nameyesInstance name

Options ​

FlagTypeDefaultDescription
--password-onlyboolfalsePrint only the password. No trailing newline — safe for clipboard pipes.
--no-confirmboolfalseSkip the confirmation prompt

Examples ​

bash
# Full credential set, with confirmation
vibepg creds show demo

# Just the password into your clipboard
vibepg creds show demo --password-only --no-confirm | pbcopy   # macOS
vibepg creds show demo --password-only --no-confirm | xclip    # Linux

creds rotate ​

Synopsis ​

bash
vibepg creds rotate <name> [--length <n>] [--yes]

Description ​

Generate a new random password, run ALTER ROLE ... WITH PASSWORD '<new>' against the instance, and update the keychain. Both updates must succeed; if the keychain update fails after Postgres has accepted the new password, vibepg prints a recovery hint so you can finish manually.

Arguments ​

NameRequiredDescription
nameyesInstance name

Options ​

FlagTypeDefaultDescription
--lengthusize32New password length. Allowed range: 16–64.
--yesboolfalseSkip the confirmation prompt

Examples ​

bash
# Default 32-char rotation, with confirmation
vibepg creds rotate demo

# Stronger password, no prompt
vibepg creds rotate demo --length 64 --yes

Notes ​

  • The keychain entry id is vibepg/<name>/postgres_password.
  • creds rotate requires the instance to be running so the ALTER ROLE can land.

See also ​

Released under the MIT License.