# 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](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-prerequisites) 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** ](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/single-scan)for further information.

If you want to scan a *docker image*, please visit [**Scanning a Docker image**](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/single-scan/scanning-a-docker-image) 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**](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/single-scan/scanning-a-docker-image) 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**](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/multi-scan) 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**](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/xygeni-cli-operation-modes/organization-scan) for further information.

</details>
