Skip to content

CLI

Node 22 or newer, on macOS, Windows or Linux. Pair the printer and close its phone app first. Every command works with npx inkless.

Terminal window
inkless preview <file|text> # the exact black and white result as a PNG; no printer
inkless check # every paired printer answers; nothing prints
inkless print <file|text> # print, then wait until the printer is done
inkless printers # supported printers and the ones you paired

With one supported printer paired, print uses it. With several, it asks which one in a terminal, or lists them so you can pass --printer and --address.

For a design with several labels, --pages 2,4-5 prints only those. If a print fails partway, the message says which labels are left and the exact --pages to print them. In the website, type the labels to print next to Print, or use the button that appears after a failure.

print and preview take an image, a text file, quoted text ("line one\nline two"), - for stdin, or a design file (*.json with "version": 1). A design prints every page.

Option Effect
--printer pm290|hp6 Which printer; default PM290
--style floyd|atkinson|ordered|threshold How grays become dots; photos default to floyd, text to threshold
--level <0-255> Lightness cut-off; default 128, text 160
--size <W>x<H> Fixed label size in mm on the PM290 roll, e.g. 48x30
--width <dots> PM290 print width, 1 to 384
--invert Swap black and white
--dark / --light Burn harder or softer
--out <file.png> Where preview saves; default /tmp/inkless/preview.png
--export-job <file> print saves the printer bytes and sends nothing
--address <MAC> / --name <text> Pick the printer

Every print also saves /tmp/inkless/last.png. An almost empty picture is refused. A failed print is never retried.

Terminal window
inkless console [design.json|image|text] [--port N] [--no-open] [--printer ..]
inkless console show <design.json|image|text> # or --format <id> --set key=value
inkless console say "<text>"
inkless console wait [--until approved|any] [--timeout 600]
inkless console get [--out design.json]
inkless console stop
inkless console link <design.json> # a website link with the design inside; INKLESS_SITE changes the site

See console and agents for the loop.

Terminal window
inkless formats [--printer pm290|hp6]
inkless formats show <id> [--json]
inkless formats save <design.json> --name "My label" [--description ...]
inkless preview --format <id> --set key=value [--set ...] [--printer ..]
inkless print --format <id> --set key=value [--set ...] [--printer ..]

Fields you leave out keep their example; \n in a value starts a new line. Saved formats live in ~/.inkless/formats/. See label formats.

Terminal window
inkless blueprint <model.obj|stl|glb|gltf|vox> | --demo duck|rocket|chair|dino|vase
[--method slotted|stacked|radial|unfold] [--fill outline|solid|ribs]
[--size <mm, largest side> | --height <mm>] [--label roll|48x48|48x30|hp6]
[--out design.json] [--preview dir] [--console]

Writes a design file with one page per label. --preview also saves each label as a PNG.

Terminal window
inkless skill install [--agent claude|codex|all]

Copies the inkless skill into the agent’s skills folder.

The console listens on http://127.0.0.1:4380 (the next free port if taken). The running port is in ~/.inkless/console.json.

Method Path Does
GET /api/state Design, messages, status and printer
GET /api/events Server-sent state events on every change
PUT /api/design Replace the design: { design, from }
POST /api/messages Post a message: { from, text }
POST /api/approve Approve, and print with { print: true }
POST /api/printer/check Ask the printer to answer
GET /api/wait?since=<rev>&until=approved|any&timeout=<s> Wait for a change; 204 on timeout
GET /api/formats { formats }: built-in and saved
POST /api/formats Save a format: { format }; posts a note in the chat

On macOS a small background app holds the Bluetooth connection and asks for permission on first use. On Linux, inkless uses BlueZ RFCOMM; pair with bluetoothctl first.