# init

**`init`** command will take you through a guided process to scan your repo(s) based on your setup. Some of the supported setups include:

* A single repo that includes both your application and component library
* A monorepo with multiple packages and your component library
* Multiple application repos and a separate component library repo

{% hint style="info" %}
If you need to restart the **`init`** setup process, you can [delete scans](/help/troubleshooting.md#delete-a-scan) that were created.
{% endhint %}

#### `-r` / `--root`

Set where Omlet CLI will run the analysis. This option will come in handy if you are running the CLI from a directory that is different from the directory of the project you are trying to scan.

By default, the project root is the current working directory of the terminal. If that directory doesn't contain a `package.json` file, the CLI will attempt to find the closest `package.json` up in the directory hierarchy, starting from the current directory to determine the project root.

The CLI will also display an output in the terminal which indicates the root where it is running the scan:&#x20;

```shell-session
Analyzing the project at <PATH>…
```

#### `--log-level`

Specify the log level for the CLI. Possible values you can pass: `error`, `warn`, `info`, `debug`, `trace`

#### `-v` / `--verbose`

By default, it is set as `false`. Adding this option will give you detailed log output in the CLI.

#### `-h` / `--help`

`omlet init -h` will provide all the available options you can use to run the analyze command with some explanations.


---

# Agent Instructions: 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:

```
GET https://docs.omlet.dev/cli-and-dashboard/learn-omlet-cli/commands/init.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
