Skip to main content

CLI command reference

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. Output from setup, doctor and auth login includes update (status, update_available, latest_version, command); other commands print a stderr notice at most once a day when a newer release exists. Set EVOLINK_CLI_UPDATE_CHECK=0 to turn checks off; see How to know a new version exists.

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, holds for 24 hours from the estimate (expires_at), and binds login, backend, model and exact inputs. Generation reads the pricing rules again before submitting: the same input is submitted when its price is the approved one or lower, also under later rules; a higher price fails with price_changed, a changed input with quote_input_changed, and an expired quote with quote_expired. Nothing is sent in those cases, and a new quote and approval are needed. Failed/cap-refused estimates are not usable quotes. An estimate that lacks billing usage fails with each missing value and the option that supplies it, and saves no quote. 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. To renew a quote that has not been submitted, for example after it expired or the price rose, refresh it:
The refreshed quote has a new quote_id, keeps the original request ID and replaces the earlier quote. Show it to the user, obtain approval again, and submit only the newest quote. Submitting or resuming a replaced quote fails with quote_superseded, which names the current quote or its task. A quote whose submission has started cannot be refreshed (submission_already_started); recover its task instead. A refresh that runs while another one replaces the same quote returns quote_refresh_conflict. A quote from --inputs-file covers the whole batch: generate --quote QUOTE_ID --confirm submits every input at once (up to 10 at a time) and returns each input’s task ID or error without waiting; --wait is for one task. Collect the results with tasks batch --ids. Only when the user explicitly said not to estimate or confirm:
--skip-estimate submits without a quote, also with --inputs-file: the price is not checked, the task is charged by actual usage, and the result says so (estimate_skipped). Invalid input is still refused, and an explicit --max-cost-usd still applies: a request over it, or one whose price cannot be checked against it, is not submitted. --skip-estimate cannot be combined with --quote or --confirm. The command saves a record with its own request ID and returns a quote_id for tasks resume. —wait waits for the existing task. Timeout 1–86400 seconds, default 1800. Timeout/Ctrl-C does not cancel the server task. The timeout covers every read, retry and pause; at the limit, wait_timeout reports the last verified status and its read_at, or status_check: unverified when the latest status could not be read. 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. For a batch, tasks resume --quote QUOTE_ID finishes the inputs that were not submitted; accepted inputs return their original tasks without a new charge. tasks resume replays the request ID only within 23 hours of its first submission (EvoLink keeps it for 24 hours); after that it refuses with recovery_window_passed. It follows the quote rule as well: with an expired quote (quote_expired) or a higher price (price_changed) nothing is sent. In each case, check tasks batch or tasks list for what went through, and estimate only the rest as a new generation or batch. 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 7 days. 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.

Workflows and video analysis

These commands need you to be signed in: rules and video analyses come from the EvoLink MCP service that the CLI signs in to. workflow rules returns the overview, a run ID and the section list on the first call, then one section at a time; workflow estimate returns one estimated total for the planned run and says whether the balance covers it. Both are free. video analyze is charged by tokens to the account and is part of the workflow’s estimated total: do not run it before the user has confirmed that total. FILE_URL is an EvoLink file link from evolink upload, or the result link of an EvoLink video task (MP4 or MOV, 30 seconds or shorter). --purpose is breakdown, sound or compare; compare needs --target-file. Repeating exactly the same command within 24 hours returns the first result without a new charge, including after Ctrl-C or a dropped connection. A slow analysis returns an analysis_id; collect it with video analysis, which is free. If the service is not offering workflows or cannot be reached, these commands report workflow_unavailable. Frame extraction is not a CLI command: assistants use ffmpeg and ffprobe on their own machine. See Rebuild a reference ad. --run and --step on evolink estimate note the quote, and the generation submitted from it, with a workflow run; refreshing the quote and tasks resume keep them. With --skip-estimate they go on evolink generate itself. video analyze also takes the ID of a completed EvoLink video task in place of FILE_URL. workflow deliver records which finished video of the run was delivered, and --previous-task TASK_ID replaces an earlier selection; the command is free. None of this changes a price.

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 exits with code 130. 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. Signed in, the CLI estimates at your account’s own prices (pricing_scope: account); otherwise from the public default pricing rules (reference rates, no account discounts). —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.