Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt

Use this file to discover all available pages before exploring further.

PREREQUISITESYou must have Python 3.10 or later installed on the machine where the Semgrep CLI is running.
1
Go to Semgrep AppSec Platform, and sign up by clicking on Continue with GitHub or Continue with GitLab. Follow the on-screen prompts to grant Semgrep the necessary permissions.
2
Provide the Organization display name you’d like to use, then click Create new organization.
3
When asked Where do you want to scan? click Run on CLI.
4
Launch your CLI, and follow the instructions on the Scan a project on your machine page. For your convenience, the same information is presented below, along with instructions for Windows users.
i. Install the Semgrep CLI and confirm the installation:
# install through homebrew
brew install semgrep

# or, install through pipx (https://pipx.pypa.io/stable/how-to/install-pipx/)
pipx install semgrep

# or, install through uv (https://docs.astral.sh/uv/)
uv tool install semgrep

# confirm installation succeeded by printing the currently installed version
semgrep --version
NOTEHomebrew users: ensure that you’ve added Homebrew to your PATH.
ii. Log in to your Semgrep account. Running this command launches a browser window, but you can also use the link that’s returned in the CLI to proceed:
semgrep login
iii. In the Semgrep CLI login, click Activate to proceed.iv. Return to the CLI, navigate to the root of your project, and run your first scan:
semgrep ci
5
Once you’ve scanned your first application, return to Semgrep AppSec Platform to see the security vulnerabilities in your project. For detailed information, click Code to access your SAST findings or Supply Chain to access your SCA findings.
INFOCode is not uploaded. Only findings are sent to Semgrep AppSec Platform.

Scan without a GitHub or GitLab account

If you don’t have a GitHub or GitLab account, you can use semgrep scan in your CLI. See Scan your project for more details.