# CLI help

Snyk CLI scans and monitors your projects for security vulnerabilities and license issues.

For more information visit the [Snyk website](https://snyk.io)

For details see the [CLI documentation](https://docs.snyk.io/features/snyk-cli)

## How to get started

1. Authenticate by running `snyk auth`
2. Test your local project with `snyk test`
3. Get alerted for new vulnerabilities with `snyk monitor`

## Available commands

To learn more about each Snyk CLI command, use the `--help` option, for example, `snyk auth --help`.

**Note:** The help on the docs site is the same as the `--help` in the CLI.

### [`snyk auth`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/auth.md)

Authenticate Snyk CLI with a Snyk account.

### [`snyk test`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/test.md)

Test a project for open source vulnerabilities and license issues.

**Note**: Use `snyk test --unmanaged` to scan all files for known open source dependencies (C/C++ only).

### [`snyk monitor`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/monitor.md)

Snapshot and continuously monitor a project for open source vulnerabilities and license issues.

### [`snyk container`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/container.md)

Test container images for vulnerabilities.

### [`snyk iac`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/iac.md)

Commands to find and manage security issues in Infrastructure as Code files.

### [`snyk code`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/code.md)

Find security issues using static code analysis.

### [`snyk sbom`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/sbom.md)

Produce an SBOM for a local software project in an ecosystem supported by Snyk.

### [`snyk log4shell`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/log4shell.md)

Find Log4Shell vulnerability.

### [`snyk config`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/config.md)

Manage Snyk CLI configuration.

### [`snyk policy`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/policy.md)

Display the `.snyk` policy for a package.

### [`snyk ignore`](/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands/ignore.md)

Modify the `.snyk` policy to ignore stated issues.

## Debug

Use `-d` option to output the debug logs.

## Configure the Snyk CLI

You can use environment variables to configure the Snyk CLI and also set variables to configure the Snyk CLI to connect with the Snyk API. See [Configure the Snyk CLI](https://docs.snyk.io/features/snyk-cli/configure-the-snyk-cli)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snyk.io/~/changes/m2hJeDrttXy2N83AnRjM/snyk-cli/commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
