---
title: "templates show"
description: "Get a query template"
canonical: "https://pgbeam.com/docs/cli/templates/show"
last-updated: "2026-10-21T01:05:40.000Z"
---

# templates show

> Get a query template

URL: https://pgbeam.com/docs/cli/templates/show

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Returns a single query template by ID.

## Usage

```bash
pgbeam templates show <id>
```

## Options

| Option | Description | Required | Default |
| ------ | ----------- | -------- | ------- |
| `<id>` |             | Yes      | -       |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Get a query template
pgbeam templates show

# Output as JSON
pgbeam templates show --json
```

## Output

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