# Fixing All Dependencies

The CLI enables you to to easily fix vulnerable open-source dependencies using the sealed versions created by Seal Security.

To fix the vulnerabilities in your project, the CLI replaces in-place vulnerable package with their sealed versions. To download the sealed versions you will need an [access token](https://docs.sealsecurity.io/fundamentals/artifact-server/generating-a-token) to the Seal artifact.

1. Go to the root directory of the project and install its dependencies (e.g `npm install`).
2. Set the access token and project name. There are two ways to do this:

   * Set the access token in the `SEAL_TOKEN` environment variable, and the project name in `SEAL_PROJECT`.

   ```bash
   export SEAL_TOKEN=<token> # the access token for the server
   export SEAL_PROJECT=<project-id> # the ID of the current project
   ```

   * Set the access token and project name in the `.seal-config.yml` configuration file in the local project directory as in the following example:

   ```yaml
   token: <token> # the access token for the server
   project: <project-id> # the ID of the current project
   ```

The project ID may include only ASCII letters, digits, underscore, hyphen or period, and mustn't be over 255 characters long.

{% hint style="warning" %}
You should use the ID of the project as shown in the **Projects** tab. If you use a different ID, the platform will record the pulled libraries under a different project.
{% endhint %}

3. Run `seal fix --mode all`. The vulnerable packages that have a patched version will be replaced in place with the sealed version.

{% hint style="info" %}
Note that if your CI pipeline is using JFrog's Artifactory and cannot access other servers, you need to follow the instructions [here](https://docs.sealsecurity.io/fundamentals/cli/jfrog-integration) instead.
{% endhint %}
