# Your first scan

The first scan goes through the [**`init`**](https://docs.omlet.dev/cli-and-dashboard/learn-omlet-cli/commands/init) command that takes you through a guided process.

{% hint style="info" %}
We recommend scanning the repository that includes your design system components first.
{% endhint %}

To start the component analysis, navigate to the root of the repo you wish to scan and run:

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

```sh
npx @omlet/cli init
```

{% endtab %}

{% tab title="yarn" %}

```sh
yarn dlx @omlet/cli init
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm dlx @omlet/cli init
```

{% endtab %}
{% endtabs %}

This will install the latest version of the CLI and will ask you to log in to your Omlet account.

<figure><img src="https://4214978157-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRXB2SJ9FZ5x4QW8ihpe%2Fuploads%2FO2RFXqelz0USpbViEUqO%2FCLI%20login.png?alt=media&#x26;token=f22e84fb-b360-49a6-b590-d85d6eeb9094" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If the CLI doesn't detect the login, you can copy/paste the token manually.
{% endhint %}

If the repository you scanned includes only a single package, the CLI will prompt you to scan more repositories. Make sure to scan both the design system and the application projects. This will allow you to see the adoption of your design system for those projects.

<figure><img src="https://4214978157-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRXB2SJ9FZ5x4QW8ihpe%2Fuploads%2FWEkfBYWjLkyvoxnfSe1U%2FCLI%20scan%20multiple.png?alt=media&#x26;token=909efd1e-42aa-46e1-935f-b8eeb29da513" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If multiple packages are already scanned with **`init`**, such as a monorepo, the CLI will not prompt you to scan more repositories. You can scan them with the **`analyze`** command later on .
{% endhint %}

After completing the scans, follow the link to set up your analytics dashboard.

<figure><img src="https://4214978157-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRXB2SJ9FZ5x4QW8ihpe%2Fuploads%2F0btqaA6tyxtAuRFPGhVK%2FCLI%20scan%20completed.png?alt=media&#x26;token=441a0d67-e992-4daf-a0ac-5cc9285cc9d2" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Need help?**

If you need more help or have questions, feel free to contact us at <support@omlet.dev>.
{% endhint %}
