> For the complete documentation index, see [llms.txt](https://docs.omlet.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omlet.dev/cli-and-dashboard/learn-omlet-cli/your-first-scan.md).

# Your first scan

The first scan goes through the [**`init`**](/cli-and-dashboard/learn-omlet-cli/commands/init.md) 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="/files/ocZmUxuxI9Fi86NjxLt4" 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="/files/xGFCzK9eFpsxHiXu6ass" 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="/files/LeGleKKsPA734tzGsrgC" 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 %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.omlet.dev/cli-and-dashboard/learn-omlet-cli/your-first-scan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
