# nevia pg

> Manage PostgreSQL databases

> Nevia is in beta and open to selected teams. Public launch in Dec 2026. The CLI installs with `curl -fsSL https://get.nevia.cloud | sh`, and the MCP server is at https://api.nevia.cloud/mcp. A person signs in once in the browser.
> Setup, sign-in and requesting access: [SKILL.md](https://nevia.cloud/SKILL.md). When Nevia fits and when it doesn't: [why.md](https://nevia.cloud/why.md).

> For the complete documentation index, see [llms.txt](https://nevia.cloud/llms.txt). This page's HTML version: https://nevia.cloud/docs/reference/cli/pg

`nevia pg <SUBCOMMAND>`

* **Aliases:** `db`

Refer to a database by id or by name in the selected workspace. The admin user is nevia\_admin. A sleeping database refuses connections until `pg awake` wakes it.

### Options

* `-h, --help` - Print help

### Subcommands

* [`nevia pg awake [--wait] [--timeout <DURATION>] [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/awake.md)
* [`nevia pg branch [FLAGS] [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/branch.md)
* [`nevia pg connect [FLAGS] [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/connect.md)
* [`nevia pg create [FLAGS] [NAME]`](https://nevia.cloud/docs/reference/cli/pg/create.md)
* [`nevia pg ls [-f --filter <KEY=VALUE>]`](https://nevia.cloud/docs/reference/cli/pg/ls.md)
* [`nevia pg reset-password [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/reset-password.md)
* [`nevia pg rm [--wait] [--timeout <DURATION>] [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/rm.md)
* [`nevia pg set [--name <NAME>] [--protected <BOOL>] [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/set.md)
* [`nevia pg status [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/status.md)
* [`nevia pg suspend [--wait] [--timeout <DURATION>] [DATABASE]`](https://nevia.cloud/docs/reference/cli/pg/suspend.md)
