# Xygeni CLI Operation Modes

Xygeni CLI has **different operation modes** depending on the **scope** of the scan.

{% hint style="warning" %}
It’s important to ensure that the **JAVA\_HOME** environment variable points to the directory where Java is installed, which may or may not be done automatically depending on your platform. Additionally, you need to make sure that the $JAVA\_HOME/bin directory is included in your system’s PATH so that you can access the Java executable from anywhere on your system. Please see [Xygeni CLI Prerequisites](/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-prerequisites.md) for further info.
{% endhint %}

<details>

<summary>One single scan unit</summary>

If you want to scan one single unit (one folder, one repo), you can use the **`scan`** mode of of operation. In this case, the scanned unit will correspond to a single Xygeni project.

Please visit [**Single scan** ](/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/single-scan.md)for further information.

If you want to scan a *docker image*, please visit [**Scanning a Docker image**](/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/single-scan/scanning-a-docker-image.md) for further information

</details>

<details>

<summary>Scan a Docker image</summary>

If you want to scan a *docker image*, please visit [**Scanning a Docker image**](/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/single-scan/scanning-a-docker-image.md) for further information

</details>

<details>

<summary>Multiple scan units</summary>

If you want to scan multiple units (several folders containing several git repos, several repos, etc) , you can use the **`multi-scan`**&#x6D;ode of of operation. In this case, the scanned units will correspond to a several Xygeni projects.

Please visit [**Multi scan**](/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/multi-scan.md) for further information.

</details>

<details>

<summary>A whole SCM organization's repos</summary>

If you want to scan all the repos of a SCM organization (or justr a subset) , you can use the **`org-scan`**&#x6D;ode of of operation. In this case, every scanned repo will correspond to a Xygeni project.

Please visit [**Organization scan**](/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/organization-scan.md) for further information.

</details>


---

# 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.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes.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.
