# src prompts export

Export prompts to a JSON file.

## Usage

```bash
src prompts export [flags]
```

## Examples

```bash
# Export all prompts to stdout
src prompts export

# Export all prompts to a file
src prompts export -o prompts-backup.json

# Export with pretty formatting
src prompts export -o prompts-backup.json -format=pretty

# Export prompts with specific tags
src prompts export -o go-prompts.json -tags="go,golang"

# Export prompts with multiple tag filters
src prompts export -o filtered-prompts.json -tags="python,data-science,ml"
```

## Flags

| Flag      | Description                                             |
| --------- | ------------------------------------------------------- |
| `-o`      | Output file path (defaults to stdout if not specified)  |
| `-tags`   | Comma-separated list of tag names to filter by          |
| `-format` | JSON format: 'pretty' or 'compact' (default: 'compact') |

### API flags

| Flag                    | Description                                                                                                       |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `-dump-requests`        | Log GraphQL requests and responses to stdout                                                                      |
| `-get-curl`             | Print the curl command for executing this query and exit (WARNING: includes printing your access token!)          |
| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains                                                        |
| `-trace`                | Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing                       |
| `-user-agent-telemetry` | Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default: true) |
