Download the remote policy bundle

## Usage

`circleci policy fetch [policy-name] [flags]`

## Arguments

`<policy-name>` is optional and fetches a single policy.
When omitted, the full policy bundle is fetched.

## Flags

| Flag                      | Description                                                                       |
| ------------------------- | --------------------------------------------------------------------------------- |
| `--jq string`             | Process values from the response using jq syntax (see `circleci help formatting`) |
| `--json`                  | Output as JSON                                                                    |
| `--org string`            | Organization slug (e.g. gh/myorg) or UUID (required)                              |
| `--policy-context string` | Policy context (default "config")                                                 |

Global flags: `-c, --config`, `--debug`, `--no-color`, `-q, --quiet` — see `circleci --help`.

## Examples

- Fetch the full policy bundle: 
  `circleci policy fetch --org gh/acme`
- Fetch a single policy by name: 
  `circleci policy fetch my-policy --org gh/acme`
- Output as JSON with jq filtering: 
  `circleci policy fetch --org gh/acme --json --jq 'keys'`

## Details

Download the remote policy bundle for the given owner and context.
Pass a policy name to fetch a single policy.

Output is always JSON (the bundle is structured data).

JSON fields: policies (map of name → Rego source)

