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

# Scan

## Usage

`sec1 scan [<OPTIONS>]`

## Description

The `sec1 scan` scans your scm repository, file, binaries and share foss vulnerabilities.

If no option provided then it scans current directory for supported manifest.

Supported manifest by Sec1 CLI : 'pom.xml', 'package.json', 'requirements.txt', 'package-lock.json', 'package.lock.json', 'yarn.lock', 'gradle.lockfile', 'pnpm-lock.yaml', 'pipfile.lock', '.pom'

## Debug

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

## Options

### `--scmurl <url>`

SCM url to scan. Currently only github is supported

### `--accessToken <base64EncodedAccessToken>`

If you want to scan private repository then accessToken in mandatory.

It must be Base64 encoded in the form of `username:pat`. Here PAT is your personal access token.

**Note**: You can set accessToken in config by using `sec1 config --accessToken=<base64EncodedAccessToken>`. By doing this you dont have to pass it in command line.

If accessToken is passed in command line then it will overwrite value stored in config.

### `-s, --system <type>`

type represents system initianting a scan (default: "cli")

Allowed Values: gitaction/cli

### `-th, --threshold <severity-values...>`

Optional. You can specify threshold values for each severity. Ex. critical=1 medium=5 high=10 low=50

Its only application if scan is triggered from gitaction

### `-f, --file <file>`

Specify the file to scan.


---

# 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:

```
GET https://docs.sec1.io/user-docs/2-integration-with-sec1/5-integration-with-cli/commands/scan.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.
