# nevia pg connect

> Show a database's connection and password

> 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/connect

`nevia pg connect [FLAGS] [DATABASE]`

* **Aliases:** `url`

Pass --uri to print only the postgres\:// URI, or --pooled for the pooled URI. The database must be ready or sleeping.

### Arguments

* `[DATABASE]` - Database ID or name (optional when the workspace has one database)

### Options

* `--uri` - Print only the connection URI
* `--pooled` - Print only the pooled connection URI
* `--ca <FILE>` - File to write the server CA certificate to (PEM)
* `-h, --help` - Print help
