Sourcegraph DocsSourcegraph Docs
Changelog↗
Theme
  1. Docs
  2. Sourcegraph CLI
  3. `src`
  4. `src auth`

src auth

authentication helper commands.

Authentication-related helper commands.

Examples:

Print the active auth token:

$ src auth token sgp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Print the current Authorization header:

$ src auth token --header Authorization: token sgp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Usage

SH
$ src auth [command options]

Subcommands

  • token

On this page

  1. `src auth`

    1. Usage
    1. Subcommands

Edit this page on GitHub
View as Markdown