---
title: "Mango CLI Preview — Mango Documentation"
description: "Install and activate the Mango CLI preview for macOS, Ubuntu, or Docker Compose to host Mango IRC and Web Access."
url: "https://mangoirc.chat/docs/cli"
language: "en"
---

# Mango CLI preview

Run Mango as a headless IRC client on macOS or Linux and use Web Access from a browser.

## Install on macOS

The preview is included with a Mango purchase. It requires macOS 15 or later and a Mac that provides Secure Enclave access to the CLI.

Open the [Customer area](https://mangoirc.chat/customer), sign in with your Mango Account passkey, and choose Apple Silicon or Intel for the Mac that will host Mango. Extract the ZIP and move **Mango CLI.app** to Applications.

Open **Mango CLI.app** to copy commands into Terminal and find the setup guide.

## Start Web Access on macOS

Run setup once and choose a Web Access password for the browser.

```
cli="/Applications/Mango CLI.app/Contents/MacOS/mango-headless"
"$cli" setup --username mango
"$cli" serve
```

Open [http://127.0.0.1:8765](http://127.0.0.1:8765/) and sign in with the username and password from setup. Press ` Ctrl+C ` in Terminal to stop the host.

Use ` --bind `, ` --port `, and ` --public-url ` during setup to configure a different listener. Open the exact public URL you configure. Use HTTPS through a reverse proxy for access over the internet.

## Install on Ubuntu

In the [Customer area](https://mangoirc.chat/customer), download the Ubuntu 26.04 package for the host's architecture. Use **x86-64 (AMD64)** for Intel or AMD systems, or **ARM64** for 64-bit ARM systems.

Run these commands from the directory containing your downloaded package. Run Mango as your normal user in a session with an unlocked Secret Service keyring, such as GNOME Keyring.

```
sudo apt install ./mango-cli_*.deb
mango-cli setup --username mango
mango-cli serve
```

Open [http://127.0.0.1:8765](http://127.0.0.1:8765/) and sign in with the Web Access password you chose during setup.

## Run with Docker Compose

Download [compose.yaml](https://mangoirc.chat/downloads/mango-cli/compose.yaml) and the Ubuntu package for your Docker host's architecture. Put the downloaded ` .deb ` in a ` packages/ ` directory beside ` compose.yaml `. Docker Compose 2.17 or later builds the image locally from that package using an Ubuntu 26.04 base.

In the same directory, create a file named ` .env ` and set ` MANGO_CLI_VERSION ` to the full version between the underscores in the package filename, including the timestamp.

```
if [ ! -e mango-keyring-password ]; then
    (umask 077; openssl rand -hex 32 > mango-keyring-password)
fi
docker compose build
docker compose run --rm mango setup --username mango --bind 0.0.0.0 \
    --public-url http://127.0.0.1:8765
docker compose up -d
```

Open [http://127.0.0.1:8765](http://127.0.0.1:8765/) and sign in with your Web Access password. For a remote Docker host, run ` ssh -N -L 8765:127.0.0.1:8765 user@docker-host ` on your computer first.

The volume keeps your settings, encrypted chat cache, and keyring across container replacements. Keep the original ` mango-keyring-password ` with your volume backup. The Compose configuration disables server-side image decoding because Docker's default profile blocks Glycin's decoder sandbox.

## Activate Mango CLI

Use Web Access to activate either host. The CLI needs a Mango Account with a verified App Store purchase before connecting to IRC.

Choose **Sign in with a passkey** in Web Access. Open the [Customer area](https://mangoirc.chat/customer#cli-sign-in), sign in with your passkey if prompted, and enter the displayed code under **Activate Mango**. Check the host name and approve it, then return to Web Access to configure your IRC networks.

On macOS, the same approval stores a license bound to that Mac’s Secure Enclave. The CLI renews the license while it runs. Approve the new host if you move Mango CLI to another Mac.

Earlier macOS CLI builds

If the CLI help lists ` activate `, run ` "$cli" activate ` and approve the Terminal code in the Customer area before starting Web Access.

## Remove a host

Open the Customer area and remove the Mac from **Activated Macs** to stop future license renewals.
