src prompts update

Update an existing prompt in your Sourcegraph instance.

Usage

BASH
src prompts update [flags] <prompt-id>

Examples

BASH
# Update a prompt's basic information src prompts update \ -name="updated-prompt-name" \ -description="Updated description" \ -content="Updated prompt content" \ UHJvbXB0OjE= # Update a prompt with new tags src prompts update \ -name="prompt-with-new-tags" \ -description="Updated description" \ -content="Updated content" \ -tags="UHJvbXB0VGFnOjE=,UHJvbXB0VGFnOjI=" \ UHJvbXB0OjE= # Update prompt to draft status src prompts update \ -name="draft-prompt" \ -description="Now a draft" \ -content="Work in progress content" \ -draft \ UHJvbXB0OjE= # Update prompt settings src prompts update \ -name="auto-submit-prompt" \ -description="Auto-submit enabled" \ -content="This prompt auto-submits" \ -auto-submit \ -recommended \ -mode="EDIT" \ UHJvbXB0OjE=

Flags

FlagDescription
-nameThe updated prompt name
-descriptionUpdated description of the prompt
-contentThe updated prompt template text content
-tagsComma-separated list of tag IDs (replaces existing tags)
-draftWhether the prompt is a draft
-auto-submitWhether the prompt should be automatically executed in one click
-modeMode to execute prompt: CHAT, EDIT, or INSERT (default: "CHAT")
-recommendedWhether the prompt is recommended

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)