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.

When executing the command:
semgrep login
it redirects to https://semgrep.dev. You may receive an error when logging in: The requested URL was not found on the server. As a Semgrep tenant user, you should be redirected to your tenant site, such as: https://MY_COMPANY.semgrep.dev

To log in to the correct tenant site

Set the environment variable SEMGREP_APP_URL before calling the semgrep login function.
export SEMGREP_APP_URL=https://mycompany.semgrep.dev
semgrep login
If you frequently log in from the command line, set the SEMGREP_APP_URL variable in your shell initialization file, such as ~/.zshrc or ~ /.bash_profile, depending on your operating system.