"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/help/cli-commands/auth.md" (20 Feb 2024, 1120 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "auth.md": 1.1273.0_vs_1.1274.0.

Auth

Usage

snyk auth [<API_TOKEN>] [<OPTIONS>]

Description

The snyk auth command authenticates your machine to associate the Snyk CLI with your Snyk account.

Running $ snyk auth opens a browser window with prompts to log in to your Snyk account and authenticate. No repository permissions are needed at this stage, only your email address.

When you have authenticated, you can start using the CLI; see Getting started with the CLI

Value

In some environments and configurations, you must use the <API_TOKEN>; see Authenticate the CLI with your account

The value may be a user token or a service account; see Service accounts

In a CI/CD environment, use the SNYK_TOKEN environment variable; see Configure the Snyk CLI

After setting this environment variable, you can use CLI commands.

Debug

Use the -d option to output the debug logs.