# Usage Guide

## **Access the Docker Container**

**The Cli is preinstalled in the container and does not require any additional installation.**

Run this command to enter the Moonlight API container:

```bash
docker exec -it <your-moonlight-api-container-name> bash
```

> **Note:** Replace `<your-moonlight-api-container-name>` with your actual container name or ID.

## **Run Cli Commands**

> **Note:** For providing information to the commands, we use [Arguments](/doc/arguments-j2OjZ768Ik) , [Options](/doc/options-dOVO4phHzg) and [Flags](/doc/flags-Dqltdafq32) .

**There are 2 different Modes of using the Cli:**

### Direct Mode

Execute a single command directly:

```bash
mlcli <command> [options]
```

### Interactive Mode

Start an interactive shell session:

```bash
mlcli -i
```

You can now run multiple CLI commands without typing `mlcli` each time.

> **Note:** Exit out of Interactive mode using `exit`

## **Getting Help**

To get general help:

```bash
mlcli --help
```

For help on a specific command:

```bash
mlcli <command> --help
```

## **Troubleshooting**

**Problem**: `mlcli: command not found`  
**Fix**: Make sure you are inside the Moonlight API container, or make sure the command exists (`mlcli -h`)

**Problem**: `Permission denied`  
**Fix**: Ensure you have the correct Docker privileges, or try using `sudo`.

---

**Documents**

- [Arguments](https://docs.chiarabm.dev/s/moonlight-v2-1/doc/arguments-j2OjZ768Ik)
- [Flags](https://docs.chiarabm.dev/s/moonlight-v2-1/doc/flags-Dqltdafq32)
- [Options](https://docs.chiarabm.dev/s/moonlight-v2-1/doc/options-dOVO4phHzg)