TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/chaitu426/minibox/llms.txt
Use this file to discover all available pages before exploring further.
minibox CLI is a thin HTTP client that talks to the miniboxd daemon over a local REST API. Every command — from building images to stopping containers — translates to one or more HTTP requests. You must start miniboxd before running any command except ping.
Installation
Install to user PATH (recommended)
minibox (CLI) and miniboxd (daemon) into ~/.local/bin.HTTP Client Architecture
The CLI contains no container logic of its own. All operations are delegated to
miniboxd via HTTP. The default base URL is http://127.0.0.1:8080.| CLI command | HTTP request |
|---|---|
minibox ping | GET /ping |
minibox build | POST /containers/build |
minibox run | POST /containers/run |
minibox ps | GET /containers |
minibox logs | GET /containers/logs |
minibox exec | POST /containers/exec |
minibox stop | POST /containers/stop |
minibox kill | POST /containers/kill |
minibox start | POST /containers/start |
minibox rm | POST /containers/remove |
minibox stats | GET /containers/stats |
minibox images | GET /images |
minibox rmi | POST /images/remove |
minibox save | POST /images/save |
minibox load | POST /images/load |
minibox system prune | POST /system/prune |
CLI Environment Variables
Base URL of the miniboxd daemon. Change this if you run the daemon on a non-default port or address.
Bearer token sent to the daemon when
MINIBOX_API_TOKEN is set on the daemon side. The CLI reads this variable and attaches it as Authorization: Bearer <token> on every request.Command Summary
All 17 commands available in theminibox CLI:
| Command | Description |
|---|---|
ping | Check daemon connectivity — prints Daemon is running |
build | Build an image from a MiniBox file and context directory |
run | Run a container from a local image |
ps | List containers (running by default, -a for all) |
stats | Live cgroup resource stats for one container |
logs | Print stdout/stderr log for a container |
exec | Run a command inside a running container via namespace entry |
stop | Send SIGTERM (then SIGKILL on timeout) to a container |
kill | Send SIGKILL immediately to a container |
rm | Remove a container record and its data directory |
images | List local images from the daemon index |
rmi | Remove an image from the local index |
save | Export an image to a tar archive |
load | Import an image from a tar archive |
compose | Multi-container orchestration (up/down/ps/logs/build/start/stop/restart) |
system prune | Garbage-collect orphaned blobs, layers, and stale mounts |
db run | Run a database container with production-safe defaults |
Container ID Format
Container IDs are 8 hexadecimal characters (e.g.a1b2c3d4). They are generated randomly at container creation time.
JSON Output
Several commands support--json for scripting and automation:
NO_COLOR or MINIBOX_PLAIN environment variables to suppress ANSI formatting in plain-text output.
Typical Session
With API token authentication
Explore Commands
Build & Run Commands
ping, build, run, ps, logs, exec, stop, kill, rm, stats, db run
Image Commands
images, rmi, save, load
Compose Commands
compose up, down, ps, logs, build, start, stop, restart
System Commands
system prune, miniboxd daemon and env vars