Getting started with Snyk Open Source
Get started with Snyk Open Source to inspect, find and fix vulnerabilities in your code.
This process describes using the UI and a source code management system. You can also use an IDE tool or a CI/CD integration. See Integrations for more details.

Using the CLI tool

The Snyk CLI tool allows you to get started using the command line - for example, to install on npm:
npm install -g snyk


Ensure you have:
    A code project using open source packages, on a supported source code management system (such as GitHub), with a supported language & package manager (such as Java).
    A Snyk account (go to and sign up - see Create a Snyk account for details).

Stage 1: Add source control integration

if you already have an integration set up, you can go to Step 3.
Choose a source code integration, to allow Snyk to work on a project.
    Log in to
    Select Integrations > Source control.
    Click the source control system (for example, GitHub) to integrate with Snyk.
    Fill in the account credentials as prompted (or authenticate with your account in GitHub), to grant Snyk access permissions for integration.
See DevOps integrations & languages for more details

Stage 2: Add Projects

Add projects to test with Snyk, by choosing repositories for Snyk to test and monitor.
    Select Projects from
    Select the tool to add the project from (for example GitHub).
    In Personal and Organization repositories, select the repositories to use.
    Click Add selected repositories to import the selected repositories into your projects. This also:
      Sets Snyk to run a regular check (daily by default) for vulnerabilities.
      Creates a Webhook, so when you change code, Snyk tests your pull / merge requests, to check that new dependencies do not introduce more vulnerabilities.
    A progress bar appears: click View log to see log results.
    Project import completes.
If you encounter any errors during import, see the Importing projects information.

Stage 3: View vulnerabilities

You can now view vulnerability results for imported projects. The Projects tab appears by default after import, showing vulnerability information for project you've imported.
    Click on an imported project to see vulnerability information for that project, including the number of issues found, grouped by severity level (see screenshot below)
    Click on an entry to open the issues view for that entry, including the module, where it was introduced, and how to fix it, plus more details about the vulnerability itself:
See View project information for more details.

Stage 4: Fix vulnerabilities

For JavaScript, Ruby and Java projects, Snyk can fix your vulnerabilities via fix pull/merge requests:
Navigate to the issues view for a project:
To fix vulnerabilities:
    Click Fix this vulnerability to upgrade (or patch) to fix an individual issue, or click Fix these vulnerabilities to to fix multiple issues at once.
    The Open a Fix PR screen opens and indicates the vulnerabilities you selected:
    Check any additional issues you want to fix, or uncheck items to remove them from the fix. 4. Scroll down to the bottom of the screen and click Open a Fix PR. 5. Snyk now actions this PR, then a results screen appears:
    Optionally, select the Files changed tab to see details of the changes made.
If no package upgrade is available, you may be able to use Snyk patches to fix vulnerabilities.
See Fixing vulnerabilities for more details.

For more information

Last modified 6d ago