src api

Sourcegraph API Access

Options

NameDescription
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)
-dump-requestsLog GraphQL requests and responses to stdout
-insecure-skip-verifySkip validation of TLS certificates against trusted chains
-queryGraphQL query to execute, e.g. ‘query { currentUser { username } }’ (stdin otherwise)
-traceLog the trace ID for requests
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraph
-varsGraphQL query variables to include as JSON string, e.g. ‘{“var”: “val”, “var2”: “val2”}’