src prompts import
Import prompts from a JSON file.
Usage
BASHsrc 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
| Flag | Description | 
|---|---|
| -i | Input file path (required) | 
| -owner | The ID of the owner for all imported prompts (defaults to current user) | 
| -dry-run | Validate without importing | 
| -skip-existing | Skip prompts that already exist (based on name) | 
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) |