# login

**`login`** command is used to authenticate to the CLI and to let it know where to upload the results from a scan.

#### `--print-token`

This flag generates an access token, which can be used to automate CLI runs by adding it to your CI/CD process.

You can generate an access token by running the following:&#x20;

{% tabs %}
{% tab title="npm" %}

```sh
npx @omlet/cli login --print-token
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn dlx @omlet/cli login --print-token
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm dlx @omlet/cli login --print-token
```

{% endtab %}
{% endtabs %}

Once the token is printed, you can set the access token to an environment variable named `OMLET_TOKEN`. Omlet CLI will automatically use this specific environment variable.
