OS Manuals

/usr/bin/pg_user

A CLI application for managing PostgreSQL users

From pg_user 1.1.1-r24 (os), captured 2026-11-05 by running pg_user --help (exit 0). permalink

Cli tool for managing database users across databases

Usage:
  pg_user [command]

Available Commands:
  add         Add a database user
  alter       Alter a database users roles
  completion  Generate the autocompletion script for the specified shell
  delete      Delete a database user
  extend      Extend a database user's valid
  help        Help about any command
  hosts       List hosts from .pgpass
  list        List database users
  password    Set a database user's password
  reset       Reset a database user's password
  roles       List database roles

Flags:
  -h, --help            help for pg_user
      --no-ssl          do not use ssl when connecting
  -o, --output string   --output json|table (optional default table)
  -v, --version         version for pg_user

Use "pg_user [command] --help" for more information about a command.
Options (4)
OptionDescriptionSource
-h, --helphelp for pg_userhelp
--no-ssldo not use ssl when connectinghelp
-o, --output string--output json|table (optional default table)help
-v, --versionversion for pg_userhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.