S

Sourcegraph CLI (src)

CLI discovered

Details
Command
src
Docs
https://sourcegraph.com/docs/cli
Authentication
OAuth 2.0 oauth2 discovered $ src login

Acquired by the CLI — running src login opens the auth flow and stores the credential.

Sourcegraph access token api_key discovered Get key ↗
env SRC_ACCESS_TOKEN, SRC_ENDPOINT

Create a personal or service-account access token in your Sourcegraph instance. The docs reference Settings > Access tokens for users and service-account Access tokens for service accounts; start from creating an access token or service accounts. Use the mcp scope for MCP-only access when desired.