> 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/scan-and-maintain-projects-using-the-cli.md).

# Scan and maintain Projects using the CLI (examples)

How to scan and maintain Projects with the Snyk CLI

This group of pages provides detailed "how-to" information for the Snyk CLI.

* The [CLI tools](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/cli-tools.md) provide ways to perform tasks that cannot be done using CLI commands and options.
* [Use Snyk Open Source from the CLI](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-open-source.md), [Analyze code with the Snyk Code CLI](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-snyk-code.md), and [Use Snyk Container from the CLI ](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-cli-for-snyk-container.md)explain how to perform basic operations with Snyk Open Source, Snyk Code, and Snyk Container using the CLI.

The remaining pages address [Scanning Projects](#scanning-projects), [Monitoring Projects](#monitoring-projects), and [Maintaining Projects](#maintaining-projects). The pages are arranged in alphabetical order by keyword.

## Scanning Projects

* [The .snyk file](https://docs.snyk.io/scan-fix-and-prevent/prevent/policies/the-.snyk-file)
* [A .snyk policy file in a different directory from the manifest file](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/a-.snyk-policy-file-in-a-different-directory-from-the-manifest-file.md)
* [Failing builds in Snyk CLI](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/failing-of-builds-in-snyk-cli.md)
* [Ignore vulnerabilties using Snyk CLI](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/ignore-vulnerabilities-using-the-snyk-cli.md)
* [Invalid string length error when scanning projects](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/invalid-string-length-error-when-scanning-projects.md)
* [Scan all unmanaged JAR files](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/scan-all-unmanaged-jar-files.md)
* [How to select the organization to use in the CLI](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/how-to-select-the-organization-to-use-in-the-cli.md)
* [Setup.py file failing to scan or finding zero dependencies](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/setup.py-file-failing-to-scan-or-finding-zero-dependencies.md)
* [Severity thresholds for CLI tests](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/set-severity-thresholds-for-cli-tests.md)
* [Test public npm packages before use](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/test-public-npm-packages-before-use.md)
* [CLI test results](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/cli-test-results.md)
* [Differences in vulnerability counts across environments](https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-open-source/manage-vulnerabilities/differences-in-open-source-vulnerability-counts-across-environments)

## Monitoring Projects

* [Monitor your projects at regular intervals](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/monitor-your-projects-at-regular-intervals.md)
* [Group projects for monitoring](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/group-projects-by-branch-or-version-for-monitoring.md)

## Maintaining Projects

* [Log4shell command use](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/log4shell-command-use.md)
* [@snyk/protect package](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/snyk-protect-package.md)
* [Fix vulnerabilities using the Snyk CLI](/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/fix-vulnerabilities-using-the-snyk-cli.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
