> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/developer-tools/snyk-cli/commands.md).

# CLI help

Help reference for the Snyk CLI commands

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/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`](/developer-tools/snyk-cli/commands/auth.md)

Authenticate Snyk CLI with a Snyk account.

### [`snyk test`](/developer-tools/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`](/developer-tools/snyk-cli/commands/monitor.md)

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

### [`snyk container`](/developer-tools/snyk-cli/commands/container.md)

These commands test and continuously monitor container images for vulnerabilities and generate an SBOM for a container image.

### [`snyk iac`](/developer-tools/snyk-cli/commands/iac.md)

These commands find and report security issues in Infrastructure as Code files; detect, track, and alert on unmanaged resources; and create a .driftignore file.

### [`snyk code`](/developer-tools/snyk-cli/commands/code.md)

The `snyk code test` command finds security issues using Static Code Analysis.

### [`snyk secrets`](/developer-tools/snyk-cli/commands/secrets-test.md)

The `snyk secrets test` command scans text files in a repository for hardcoded secrets.

### [`snyk sbom`](/developer-tools/snyk-api/reference/sbom.md)

Generate or test an SBOM document in ecosystems supported by Snyk.

### [`snyk aibom`](/developer-tools/snyk-api/reference/aibom.md)

Generates an AIBOM for a local software project written in Python, Java, JavaScript, or Go, to understand what AI models, datasets, tools, and so on are used in that project.

### [`snyk aibom test`](/developer-tools/snyk-cli/commands/aibom-test.md)

Generates an AI-BOM and tests it against your tenant's policies, returning all resulting issues.

### [`snyk cos`](/developer-tools/snyk-cli/commands/cos.md)

These commands manage targets, run scans, and review findings for Snyk AI Pentesting, to find security vulnerabilities in your deployed applications.

**Note:** The `snyk cos` command set is in Closed Beta and is available only for Enterprise plans.

### [`snyk log4shell`](/developer-tools/snyk-cli/commands/log4shell.md)

Find Log4Shell vulnerability.

### [`snyk config`](/developer-tools/snyk-cli/commands/config.md)

Manage Snyk CLI configuration.

### [`snyk fix`](/developer-tools/snyk-cli/commands/fix.md)

LLM-driven vulnerability remediation for Snyk Open Source and Snyk Code. Use with `--agentic --experimental --sca` or `--sast`.

### [`snyk policy`](/developer-tools/snyk-cli/commands/policy.md)

Display the `.snyk` policy for a package.

### [`snyk ignore`](/developer-tools/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/snyk-cli/configure-the-snyk-cli)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.snyk.io/developer-tools/snyk-cli/commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
