---
title: "db test"
description: "Test database connection"
canonical: "https://pgbeam.com/docs/cli/db/test"
last-updated: "2026-09-14T19:37:21.000Z"
---

# db test

> Test database connection

URL: https://pgbeam.com/docs/cli/db/test

Attempts to connect to the upstream database using the stored credentials and returns the result.

## Usage

## Options

Option

Description

Required

Default

`<id>`

Yes

-

All global options (`--token`, `--profile`,
`--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
also available on this command.

## Examples

## Output

Renders a human-readable table or detail view by default; pass `--json` for the raw API response.