Skip to main content

CLI command reference

For released @evolinkai/cli 0.8.1. Use evolink —help or evolink COMMAND —help —json for your installed version. Business commands support —json. Replace MODEL_ID, QUOTE_ID, TASK_ID and UPLOAD_ID with actual returned values.

Authentication, diagnostics and skills

See installation. Agent values: all/codex/claude-code/cursor/gemini/opencode/copilot/openclaw/hermes; default all. The assistant must still verify skill discovery.

Models, inputs and documentation

Docs search uses the bundled official model-reference index, not a live website crawl. Recommendation is based on documented inputs, keywords and editorial platform preferences, not a popularity leaderboard. Unit prices are not task quotes.

Quotes and generation

Create input.json using the model’s real parameters, then obtain a free quote:
A successful quote returns quote_id, lasts about 15 minutes, and binds login, backend, model and exact inputs. Failed/cap-refused estimates are not usable quotes. Show specifications, range and warnings, wait for explicit approval, then select the matching command:
These are separate examples; one quote covers one type/task. Generation accepts no replacement model/input. Requote and approve changes. —confirm declares approval was obtained; it cannot ask the user by itself. —wait waits for the existing task. Timeout 1–86400 seconds, default 1800. Timeout/Ctrl-C does not cancel the server task. Complete estimates default to their quoted maximum for submission checks. See budget limitations.

Tasks, batches and recovery

Time filtering affects only the selected page. History covers the account, not just this chat. An empty page cannot prove submission was absent; total precedes local time filtering. Batch IDs are 1–50 comma-separated values. With a task ID, use get/wait. For a lost submit response, resume the original quote with its request ID and login. If records are lost, expired or the account changed, inspect history/console before another paid intent. CLI has no cancellation command.

Balance and task usage

Balance returns account balance and applicable limits. Usage accepts model/type/creation time; default since 30d, max-pages 1–20, default 5, 50 tasks per page. Inspect missing costs, coverage and truncation. Usage is reported completed-task cost from bounded account-wide retained history, not a bill, refund ledger, CLI/MCP-only usage or final budget.

Uploads and original downloads

CLI accepts regular files from 1 byte to 95 MiB, saving an upload ID first. uploads get only reads the original receipt. Without compatible backend support, it can report unknown without resending. References typically remain for 72 hours. Download index is 1-based, default 1, range 1–50. Parent directories must exist; files are not overwritten. Each result is at most 1 GiB. Type/content checks reject HTML error pages masquerading as media. Batch mode —all —output-dir DIR supports —template NAME and —resume. Resume uses original batch records and does not trust arbitrary same-name files. More in task delivery.

JSON, exit codes and configuration

—json writes one stdout JSON line with schema_version:1 and ok. Progress goes to stderr. Errors use ok:false/error and nonzero exit; Ctrl-C usually exits130. A task status:failed differs from a query invocation failure. Check command ok, then task state. Local records remain in ~/.evolink-media; credentials use OS secure storage. Do not copy this directory to migrate login or delete quote/recovery records to fix an uncertain submission. Advanced —server selects the OAuth resource/identity binding, default https://mcp.evolink.ai/mcp, without changing REST execution. Keep —api-url/—files-url production defaults; arbitrary external URLs are refused. —token-stdin is a one-command OAuth access token, not a platform API key, and is not for setup. Do not put tokens in command arguments or logs. No generic run, text chat, cancellation, top-up, key management or custom alias-file command is provided. Use the corresponding console/API.

CLI execution path and APIs

Since CLI 0.8.0, media requests use terminal or agent → EvoLink CLI → platform REST API. Input checks, model references, estimation, and result formatting run locally; business execution does not call remote MCP tools/call.

Commands and backend operations

CLI quote_id, —confirm, and recovery files implement a client workflow, not new backend fields. Published CLI 0.8.1 still uses public-default estimation; the existence of new pricing APIs does not mean this version consumes account-specific media quotes. —max-cost-usd is not a final settlement cap.

Requests, recovery, and automation

Persist the quote and request identifier before submitting. REST uses existing Idempotency-Key / X-Evo-Run-Id identifiers. Recover with the original quote after a lost response; do not change identity, inputs, or identifiers to resubmit. Client records alone do not prove uniform backend idempotency across production nodes. Scripts should inspect ok, then task status, then results and cost fields. Store quote_id, task_id, and download manifests instead of relying on the last terminal line. Query errors, failed tasks, and failed downloads require different handling. Do not unconditionally retry paid submissions. CLI and native MCP sessions are managed separately, but account OAuth currently shares the permissions, limits, and pause state of EvoLink MCP (OAuth). Use the separate MCP documentation for native connections.