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

FlagDescription
-oOutput file path (defaults to stdout if not specified)
-tagsComma-separated list of tag names to filter by
-formatJSON format: 'pretty' or 'compact' (default: 'compact')

API flags

FlagDescription
-dump-requestsLog GraphQL requests and responses to stdout
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)
-insecure-skip-verifySkip validation of TLS certificates against trusted chains
-traceLog the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default: true)