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
| Name | Required | Description |
|---|---|---|
name | yes | Instance name |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--password-only | bool | false | Print only the password. No trailing newline — safe for clipboard pipes. |
--no-confirm | bool | false | Skip 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 # Linuxcreds 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
| Name | Required | Description |
|---|---|---|
name | yes | Instance name |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--length | usize | 32 | New password length. Allowed range: 16–64. |
--yes | bool | false | Skip 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 --yesNotes
- The keychain entry id is
vibepg/<name>/postgres_password. creds rotaterequires the instance to be running so theALTER ROLEcan land.