src prompts import

Import prompts from a JSON file.

Usage

BASH
src prompts import [flags]

Examples

BASH
# Import prompts from a file (uses current user as owner) src prompts import -i prompts.json # Import prompts with a specific owner src prompts import -i prompts.json -owner="VXNlcjox" # Perform a dry run without creating any prompts src prompts import -i prompts.json -dry-run # Skip existing prompts with the same name src prompts import -i prompts.json -skip-existing # Combine flags for validation and skipping src prompts import -i prompts.json -dry-run -skip-existing

Flags

FlagDescription
-iInput file path (required)
-ownerThe ID of the owner for all imported prompts (defaults to current user)
-dry-runValidate without importing
-skip-existingSkip prompts that already exist (based on name)

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)