> 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/implementation-guides/team-implementation-guide/phase-3-gain-visibility/import-projects.md). Agents can also search and read this documentation through its [MCP server](https://docs.snyk.io/~gitbook/mcp).

# Import Projects

How to import Projects into Snyk using an SCM integration or the Snyk CLI with CI/CD

Depending on the integrations you have configured, and the languages and package managers in your tech stack, you can import Projects into Snyk using:

* A source control integration with your Git repositories
* The Snyk CLI with CI/CD

The best import route varies based on the languages and package managers in your tech stack.

Complete [Configure integrations](https://docs.snyk.io/implementation-guides/team-implementation-guide/phase-2-configure-your-organization/configure-integrations.md) before you import, and use an account with the **Add Project** permission for your Organization, such as Org Admin or Org Collaborator.

The following key points help you determine the best starting point.

{% hint style="info" %}
For details, visit [Getting started](https://docs.snyk.io/getting-started-guides/getting-started.md) and [Start scanning](https://docs.snyk.io/getting-started-guides/start-scanning.md).
{% endhint %}

Depending on your needs, Snyk offers various integration methods.

## SCM integration

For details, visit [SCM integrations](https://docs.snyk.io/developer-tools/integrations/scm-integrations/organization-level-integrations).

Connect your repositories for automatic scanning.

For a small number of applications, typically fewer than 100:

1. In the Snyk Web UI, navigate to **Settings** > **Integrations** > **All integrations** and connect to your Git repositories.
2. In the integration settings:
   1. Disable the automatic fixes and PR and MR checks when you first onboard Projects.
   2. Enable them after you reach a steady state and want blocking.
3. From the **Projects** page, add the Projects.
4. Monitor results in Git code repositories.

The import succeeds when the repositories you added appear as Projects on the **Projects** page and Snyk reports their issues.

For hundreds or thousands of repositories:

* At scale, Snyk recommends using the API. APIs are available with the Snyk Enterprise plan.
  * Use the [Snyk API](https://docs.snyk.io/developer-tools/snyk-api/snyk-api) to import your Projects. This uses an existing source control integration, and you can use it to automate processes.
  * The [API-import](https://docs.snyk.io/developer-tools/snyk-apps/tool-snyk-api-import) tool uses the API to manage onboarding at scale for large enterprises and is the recommended tool at scale. The source control structure needs to be mirrored.

## Snyk CLI

For details, visit [Snyk CLI](https://docs.snyk.io/developer-tools/snyk-cli).

Use the CLI for granular scanning of individual Projects.

{% hint style="info" %}
You must write a command for each type of test to perform (open source, code, infrastructure as code (IaC), and container).
{% endhint %}

To use the Snyk CLI:

1. [Install the CLI](https://docs.snyk.io/developer-tools/snyk-cli/install-the-snyk-cli) using one of the appropriate methods as part of the build script.
2. [Authenticate to use the CLI](https://docs.snyk.io/developer-tools/snyk-cli/snyk-cli/authenticate-to-use-the-cli) by using the `snyk auth` command or an environment variable.
3. In the script, navigate to the Project folder.
4. Run the appropriate `snyk test` or `snyk monitor` commands and options for the type of scan you want to run.\
   \
   Where to implement testing in your scripts is generally flexible, but it is most common before deployment. Use the `monitor` command alone for Snyk Open Source and Snyk Container to report passively. When you use gating through the `test` command, the purpose is to break the build if Snyk finds issues that meet particular criteria, such as `--severity-threshold`, or any number of options in the CLI or the `snyk-filter` plugin.\
   \
   In general, run Snyk Open Source with `test`, `monitor`, or both after the dependencies are installed on the build system.\
   \
   Typical commands look as follows:
   * Code: `snyk code test --org=[org-id]`
   * Open source:
     * `snyk test --all-projects --org=[org-id]`
     * `snyk monitor --all-projects --org=[org-id]`\
       Replace `[org-id]` with the ID of your Organization.
   * For container and IaC scans, the commands vary based on the type being scanned. For details, visit [Container](https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-container/scan-container-images) and [Infrastructure as Code](https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-iac).
5. Review results either locally when running `snyk test`, or in the Snyk Web UI when using `monitor` or report.

The CLI is working when `snyk test` returns its results in the terminal and, after `snyk monitor`, the Project appears on the **Projects** page.

For demonstrations of various pipeline integrations, visit [Snyk Labs CI/CD integration examples](https://github.com/snyk-labs/snyk-cicd-integration-examples).


---

# 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/implementation-guides/team-implementation-guide/phase-3-gain-visibility/import-projects.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.
