Skip to main content

Command Reference

Full reference for all maxun CLI commands.

Auth

CommandDescription
maxun login --api-url <url> --api-key <key>Authenticate with your Maxun instance and API key
maxun logoutClear stored credentials
maxun statusShow authentication status, plan, and credits
maxun creditsShow remaining credit balance

Robots

CommandDescription
maxun robots listList all robots (JSON by default, --table for formatted view)
maxun robots extract -p <prompt> [-u <url>] [--provider <p>] [--model <m>]Create an AI robot from a natural language prompt
maxun robots scrape <url>Create a single-page scraping robot
maxun robots crawl <url>Create a multi-page crawling robot
maxun robots search <query>Create a search-based robot
maxun robots get <id>Get details for a specific robot
maxun robots delete <id>Delete a robot
maxun robots duplicate <id> --url <url>Duplicate a robot with a new target URL

Execution

CommandDescription
maxun run <id>Run a robot and return results (JSON by default)
maxun run <id> --tableRun and display results in table format
maxun run <id> -f <formats>Override output formats for this run

Runs & Data

CommandDescription
maxun runs list <robot-id>List recent runs for a robot
maxun runs get <robot-id> <run-id>Get output of a specific run
maxun runs get ... -f csv -o file.csvExport run output as CSV
maxun runs abort <robot-id> <run-id>Abort an in-progress run

Global Flags

FlagDescription
-v, --versionPrint CLI version
-h, --helpShow help for any command

Environment Variables

VariableDescription
MAXUN_API_KEYAPI key — overrides stored config
MAXUN_API_URLAPI base URL — defaults to https://app.maxun.dev

Configuration File

Credentials are stored at ~/.maxun/config.json:

{
"apiKey": "your-api-key",
"apiUrl": "http://localhost:8080"
}