mel --help or mel <group> --help at any time for the same reference in your terminal. Every command that creates a resource auto-generates a UUID if you don’t pass --id, and returns the created object as JSON.
Authentication
Teams
Projects
Canvases
mel canvas content <canvasId> --node-id <nodeId> also returns canvasUrl to open the node or group in Melius. The link uses existing canvas permissions. If the extra canvas metadata lookup fails, the successful content result is returned without this optional field.
Nodes
Node mutations write directly to the live canvas — changes sync to connected browser clients in real time.mel node create options:
mel node update takes the same options (all optional); geometry must be updated as a full set (--x --y --w --h together).
Use mel model list --category image to find each variant’s qualityOptions
and defaultQuality. Pass an option ID with --quality on node creation,
node updates, or mel run start; bulk-create JSON accepts quality on each
node. Quality affects the credit price. Omitting it from an explicit model
selection uses that variant’s default.
To color a group, pass --color to mel node group or --group-color to mel node update. Colors: default, amber, blue, purple, olive, red, pink, green, yellow.
Choose a custom text view
Beta — Markdown presentation is rolling out gradually. Reach out to
support if you’d like access.
--text-view raw or --text-view markdown when creating, updating, or replacing a custom text node’s content:
textView: "raw" or textView: "markdown" on each node.
Switch a node back to Auto
Clear a saved model with:--auto cannot be combined
with --model, --variant, --tier, or --quality.
Replace a shot in a stitch
mel stitch get <canvasId> <stitchNodeId> returns the saved edit’s revision and each shot’s list index or timeline clip ID. Pass that revision and exactly one shot to mel stitch clip-replace:
nodeId to render it.
Edges
Edge type determines data flow — an
image edge passes the source node’s image output to the destination.
Runs
A run generates or post-processes the output for a single node.
Auto-model resolution. When
--model/--variant are omitted, mel run start resolves the right model from platform defaults — including picking image-to-image when the node has an incoming image edge. --canvas-id is required so the CLI can verify the node and do edge-aware detection.
mel run tool post-processes a node’s finished asset and creates a new active version on the same node. The currently supported tool is remove-background for image nodes and file nodes that contain images. It runs Pixelcut (20 credits).
Recover a submission
mel run start, mel run tool, mel run magic-resize and mel bulk-run start
accept --idempotency-key <key>. A bare invocation creates a fresh key for new
intent. Reuse a supplied key only for identical input: changing an accepted
request returns IDEMPOTENCY_KEY_REUSED instead of starting a new run.
Before sending, the CLI writes an owner-only receipt under ~/.mel/receipts/.
The JSON submission_receipt record on stderr contains receipt,
idempotencyKey and a retry command array. Success JSON is unchanged.
After a lost response or 5xx, explicitly recover with:
IDEMPOTENCY_REQUEST_IN_PROGRESS, wait at least
retryAfterSeconds before replaying the same receipt.
Use the original server, configured team selector and API key. A one-way key
fingerprint binds the receipt to that context; rotated keys are rejected.
Receipts contain request data such as prompts and asset URLs, but no credentials.
Keep them private, and retain them while recovery may be needed.
There are no automatic network or 5xx retries; existing 429 handling stays.
An insufficient-credit describe request uses a separate key and receipt because
its body differs. Cast and Ditto retain attemptId recovery. Other media tools
and project, canvas or node creation are outside this workflow. An older or custom
server may ignore the header: verify support before explicitly replaying.
Release order: fully deploy the API first, then publish the CLI through its
release PR and roll out hosted MCP. The client source PR is not a CLI
release.
Bulk runs
Run an entire canvas in dependency order.
Downstream nodes wait for their inputs; if a node fails, its dependents are skipped while independent branches continue.
ZIPs from
mel run download, mel bulk-run download and mel canvas download include a manifest.json that maps each file to its asset, node, version and run. The MCP tool reference lists its fields.
Cast
Make presenter videos from a saved avatar and a script. Cast walks through a full video.mel cast result is the same as mel cast status.
Ditto
Replace characters, props and backgrounds in a video you supply. Ditto walks through a full edit.Presets
Presets are pre-built canvas layouts (nodes, edges, and groups) expanded onto the canvas so you can see and edit every node.Templates
Templates are opaque, reusable canvas workflows. Applying one drops a single collapsed box onto the canvas that exposes only its public input/output ports — the internal workflow stays private. When you set a team withmel team switch <teamId> or MEL_TEAM_ID, mel template list puts templates targeted at that team before global templates. Apply the returned id to use that team’s current workflow.
mel template apply options:
portId from mel template list and is one of:
- Text —
{ "kind": "text", "portId": "<id>", "text": "…" } - Library asset —
{ "kind": "asset", "portId": "<id>", "assetId": "<id>", "mediaType": "image|video|audio|pdf" }— an asset already in your library (find one withmel asset search) - Media URL —
{ "kind": "assetUrl", "portId": "<id>", "url": "https://…", "mediaType": "image|video|audio|pdf" }— Melius fetches the URL and stores it as an asset, so you can use an image or video already hosted elsewhere without uploading it first
Beta — media-URL (
assetUrl) inputs are rolling out gradually. Reach
out to support if you’d like access.mel bulk-run start <canvasId> --node-ids <groupId> --wait:
Models
Audio & fonts
Comments
Presence
Show the agent’s live “working here” region on a canvas — visible in real time to everyone with the canvas open.
Pass
--agent-name <name> to mel presence claim to name the agent shown on the claim overlay.
Pass the same --presence-id <uuid> to mel presence claim and mel presence release to keep your overlay separate from other agents working on the same canvas. mel presence release prints removed: false when no overlay with that ID was showing.
A claim you never release disappears on its own five minutes after your last request to Melius.
Assets
Search your team’s Files library (past uploads and generations) and place existing assets onto a canvas by reference — no re-upload, no duplicate. Requires a Pro or Enterprise plan.mel asset search options:
--folder-id or --tags — omit it to bring in a whole folder or every tagged asset. Every filter applies together. The response is { query, total, results, hasMore, nextCursor }; while hasMore is true, pass nextCursor to --cursor with the same query and filters for the next page.
mel asset search returns assetIds — feed them straight into mel asset place, then wire the resulting nodes into generations with mel edge create:
Uploads
Upload adds a new local file;mel asset search reuses one already in the team library.
--tags takes comma-separated names. Each matches one of your team’s tags
ignoring case, and a new name creates the tag. Find tagged files with
mel asset search --tags.
Supported formats: PNG, JPEG, GIF, WebP, AVIF, SVG, HEIC, and HEIF. To use your own video, audio file, or PDF, drop it onto a canvas in the Melius app.
Configuration
Shell completion
Generated from the live command tree, so completions never drift. See Installation → Shell completion for one-line setup per shell.
Global flags
Available on every command:Exit codes and errors
mel uses deterministic exit codes so scripts and agents can branch on the result without parsing text:
Errors are structured JSON on stderr:
code, a human-readable message, and usually a suggestion with the exact command to fix it.
Rate limiting
There is no monthly request quota on any plan, but a burst of requests can still be rate limited. On a429, mel prints Rate limited — waiting Ns… to stderr, honors the Retry-After header (or backs off exponentially), and retries — so polling commands like mel run wait ride through a limit. stdout stays clean. After repeated 429s it gives up with a RATE_LIMITED error (exit 1).
Sticky notes
mel canvas content <canvasId> includes a notes array with note text, color, fontSize, wrapWidth, geometry and group membership. Labels use the same sticky-note record, with their text size and rectangular dimensions defining their appearance. Use --note-id <noteId> to inspect one note, or --note-offset 0 to read notes in pages of 50; continue with nextNoteOffset until it is null. Positions are relative to the parent group when groupId is set.
--font-size auto|small|medium|large|xl on create or update. New notes default to medium. Updates preserve the saved font size when you omit the option. Auto notes keep their on-screen size as you zoom. Their positive --width and --height values seed the initial measurement; the app remeasures them to fit content. Auto height always follows content.
Use --wrap-width <pixels> to persist an Auto note’s wrapping width. The value must be finite and at least 48 screen pixels. Use --clear-wrap-width to restore content-fitting width; these two flags are mutually exclusive. Omitting both preserves the saved value on update.
Use --group-id <uuid> to assign a note to a group from mel canvas content, or --ungroup to place it at the canvas root. These flags are mutually exclusive. New notes default to the root; updates preserve the group when both are omitted. Changing the group preserves each omitted coordinate’s absolute canvas position. Supplied --x and --y are relative to the new group, or the canvas root when ungrouped.
For fixed font sizes (small, medium, large, xl), set --width to at least 240 and --height from 120 to 960 in canvas units. Widths such as 1500 are supported. Values outside these bounds are clamped, and a short wide note works as a label bar. Text stays at its chosen size when the note is resized. Long text scrolls inside the note. A side stored outside its range keeps its size until you change it. Switching from auto to a fixed font size resets each omitted dimension to 320 canvas units and clamps any supplied dimensions to the fixed-size bounds.
Create and update return the saved note, including its color, fontSize, wrapWidth and groupId. Choose --color yellow|pink|blue|green|purple; new notes default to yellow, and updates preserve omitted fields. Delete returns { "message": "Deleted", "noteId": "<note-id>" }. All three write commands require editor access.