> ## Documentation Index
> Fetch the complete documentation index at: https://developer.kodexa.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Document Tags

> Use kdx document tags to list every unique tag in a KDDB document along with how many times each tag appears across content nodes.

List all unique tags in a document with how many times each appears across content nodes.

## Usage

```bash theme={null}
kdx document tags <file.kddb> [flags]
```

## Flags

| Flag       | Description                      | Default |
| ---------- | -------------------------------- | ------- |
| `--name`   | Filter to a specific tag name    |         |
| `--prefix` | Filter tags starting with prefix |         |

## Examples

### List All Tags

```bash theme={null}
kdx document tags invoice.kddb
```

```json theme={null}
[
  {"name": "invoice/vendor_name", "count": 1},
  {"name": "invoice/invoice_number", "count": 1},
  {"name": "invoice/line_item/description", "count": 5},
  {"name": "invoice/line_item/amount", "count": 5},
  {"name": "invoice/total", "count": 1}
]
```

### Filter by Prefix

```bash theme={null}
kdx document tags invoice.kddb --prefix "invoice/line_item"
```

```json theme={null}
[
  {"name": "invoice/line_item/description", "count": 5},
  {"name": "invoice/line_item/amount", "count": 5}
]
```

<Tip>
  Use `--prefix` to see only tags within a specific tag namespace.
</Tip>
