src prompts list

List all prompts in your Sourcegraph instance.

Usage

BASH
src prompts list [flags]

Examples

BASH
# List all prompts src prompts list # Search prompts by name, description, or content src prompts list -query="error handling" # Filter prompts by tag IDs src prompts list -tags="UHJvbXB0VGFnOjE=,UHJvbXB0VGFnOjI=" # List prompts for a specific owner src prompts list -owner="VXNlcjox" # List only recommended prompts src prompts list -recommended-only # List built-in prompts only src prompts list -builtin-only # Include built-in prompts with user prompts src prompts list -include-builtin # Exclude draft prompts src prompts list -include-drafts=false # List prompts owned by viewer or their organizations src prompts list -affiliated # Paginate through results src prompts list -limit=10 -after="cursor" # Select specific columns to display src prompts list -c id,name,description,visibility # Output results as JSON src prompts list -json # Complex filtering example src prompts list -query="Go" -recommended-only -include-drafts=false -json

Flags

FlagDescription
-querySearch prompts by name, description, or content
-ownerFilter by prompt owner (a namespace, either a user or organization)
-tagsComma-separated list of tag IDs to filter by
-affiliatedFilter to only prompts owned by the viewer or viewer's organizations
-recommended-onlyWhether to include only recommended prompts
-builtin-onlyWhether to include only builtin prompts
-include-builtinWhether to include builtin prompts
-include-draftsWhether to include draft prompts (default: true)
-limitMaximum number of prompts to list (default: 100)
-afterCursor for pagination (from previous page's endCursor)
-cComma-separated list of columns to display. Available: id,name,description,draft,visibility,mode,tags (default: "id,name,visibility,tags")
-jsonOutput results as JSON for programmatic access

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)