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:

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 , Options and Flags .

There are 2 different Modes of using the Cli:

Direct Mode

Execute a single command directly:

mlcli <command> [options]

Interactive Mode

Start an interactive shell session:

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:

mlcli --help

For help on a specific command:

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.