pgcli <database_name or db_url>
No description
Arguments
Name | Description |
---|---|
database_name or db_url |
Options
Name | Description |
---|---|
-h, --host <text> | Host address of the postgres database |
-p, --port <integer> | Port number at which the postgres instance is listening |
-U, --username <text> | Username to connect to the postgres database |
-u, --user <text> | Username to connect to the postgres database |
-W, --password | Force password prompt |
-w, --no-password | Never prompt for password |
--single-connection | Do not use a separate connection for completions |
-v, --version | Version of pgcli |
-d, --dbname <text> | Database name to connect to |
--pgclirc <file> | Location of pgclirc file |
-D, --dsn <text> | Use DSN configured into the [alias_dsn] section of pgclirc file |
--list-dsn | List of DSN configured into the [alias_dsn] section of pgclirc file |
--row-limit <integer> | Set threshold for row limit prompt. Use 0 to disable prompt |
--less-chatty | Skip intro on startup and goodbye on exit |
--prompt <text> | Prompt format (Default: "\u@\h:\d> ") |
--prompt-dsn <text> | Prompt format for connections using DSN aliases (Default: "\u@\h:\d> ") |
-l, --list | List available databases, then exit |
--auto-vertical-output | Automatically switch to vertical output mode if the result is wider than the terminal width |
--warn <choice> | Warn before running a destructive query |
--ssh-tunnel <text> | Open an SSH tunnel to the given address and connect to the database from it |
--help | Show this message and exit |