CLI 指令
Pixling 正在準備於 Mac App Store 上架。歡迎到 pixling.app 加入候補名單,上架時會通知你。
大多數 pixling 子指令都會連上正在執行的 App、執行一項操作後結束。有五個常駐指令則會保持開啟:
rpc:維持單條連線,從 stdin 讀取 NDJSON 請求並逐行印出 JSON 回應,直到 EOF。inbox wait:等待直到有未讀 ID 進來,App 沒在執行時也會持續等待。inbox receive:保持接收器連線,直到使用者把居民收起來或連線中斷。resident follow:從 stdin 讀取視窗矩形直到 EOF,讓居民一直待在視窗邊緣。resident events:居民每次被點一下就印出一行 JSON,直到它被收起來。
依工作快速索引
「依工作快速索引」一節| 工作 | 指令 | 參考 |
|---|---|---|
| 程式化 RPC 與結構描述 | call、rpc、schema |
CLI |
| 工作階段與收件匣 | resident ensure、resident request-close、inbox wait、inbox receive、inbox watch、inbox read |
居民綁定、收件匣 |
| 說話與提問 | message send、question ask、question result、question cancel、conversation read |
一句話和提問 |
| 居民與配置 | residents、resident place、resident follow、resident desktop-visibility、resident summon、resident duplicate、resident stow、resident events、call resident.pixels |
居民 |
| 設定與外觀 | resident describe、resident set、resident sketch、settings get、settings set |
居民設定、App 設定 |
| 對話框套件 | kit list、kit describe、kit set、kit duplicate、kit delete、kit import |
對話框套件 |
| 動作與連續動作 | resident glow、resident emote、resident bounce、resident throw、resident status、status define、sequence * |
光(glow)、連續動作、居民 |
| 群組和關係 | call group.*、call relation.* |
群組和關係 |
| 圖鑑與帶入 | zukan、note get、note set、import prepare、import adopt |
居民、備註、帶入 |
| 診斷與 App | capabilities、doctor、app quit |
CLI、App 設定 |
指令目錄
「指令目錄」一節以下表格與用法區塊由建置出來的指令樹自動產生(隱藏的開發者指令與 help 不會列出);指令名稱與摘要維持英文,與實際 CLI 約定一致。
| 指令 | 摘要 |
|---|---|
pixling call |
Send one typed operation as JSON and print one JSON document to stdout. |
pixling rpc |
Run a persistent NDJSON request/response worker on stdin and stdout. |
pixling schema |
Print the JSON input schema for one operation or all operations. |
pixling capabilities |
List operations supported by the app. |
pixling doctor |
Diagnose why the CLI or MCP cannot reach Pixling (read-only). |
pixling inbox wait |
Block until unread IDs newer than –since exist, waking on the app’s notification. Keeps waiting while the app is down. |
pixling inbox receive |
Hold a receiver: it tells the app your session hears what the user writes at once. Exits 0 when the user puts it away, 3 when Pixling is unreachable or the connection ends, 5 when refused. |
pixling inbox watch |
Wait once for unread IDs, without reading bodies. Repeats unread IDs until read. |
pixling inbox read |
Read a message body and persist its read status. |
pixling residents |
List residents on the desktop, per display from front to back. |
pixling resident place |
Move, resize, rotate, or mirror exactly one resident. Omitted axes stay as they are. |
pixling resident follow |
Keep one resident against a window’s edge, following rectangles read from stdin until it ends. |
pixling resident describe |
Show one resident’s current settings and the values it can take. |
pixling resident set |
Change one resident’s settings. Use shorthand flags for common fields, or –input JSON / pixling call resident.set for all fields. |
pixling resident desktop-visibility |
Hide here, show here, or show only here; keeps position and physical display. |
pixling resident ensure |
Create or recover one resident by stable client namespace/key. Stowed keys stay stowed while bound. |
pixling resident summon |
Bring one resident from the zukan to the desk as a new copy. |
pixling resident duplicate |
Duplicate exactly one placed resident, settings included. |
pixling resident stow |
Put exactly one placed resident back into the zukan. |
pixling resident sketch |
Print a coarse ASCII sketch of a resident (its resting frame, or frames of one motion) plus the shape of each stored size of its picture. |
pixling resident glow |
Light one resident once: what (all, colors, color groups, points), which color, and how (pulse, sweep, blink). Success means accepted, not confirmed playback. |
pixling resident emote |
Pop an emoji or short text above one resident’s head. Success means accepted, not confirmed playback. |
pixling resident bounce |
Squash one resident against a side and spring back, like hitting a wall. Calls stack. Success means accepted, not confirmed playback. |
pixling resident throw |
Throw one resident with an initial velocity (pt/s, +x right, +y up). The endpoint is saved before it moves. |
pixling resident status |
Give your own resident a temporary status (a name, idle motion or pose) until replaced, cleared or expired. Nothing is saved. |
pixling resident request-close |
Ask the user on your own resident whether to close this session; yes puts the resident away. |
pixling resident events |
Print one JSON line per click on your own resident until it is put away. Nothing is kept. |
pixling note get |
Read a local note. |
pixling note set |
Replace a local note; empty text clears it. |
pixling settings get |
Read the app-wide settings, the read-only connection values and the options. |
pixling settings set |
Change app-wide settings in one save; pass –input JSON (or pixling call settings.set) for all fields. |
pixling conversation read |
Read one resident’s conversation, oldest first, in pages. The user’s words carry text only through your client: selector. |
pixling app quit |
Quit Pixling, as the resident menu’s Quit Pixling does (Studio quits too). |
pixling zukan |
List the residents in the zukan (library), with how many copies are on the desk, in pages. |
pixling import prepare |
Start a draft from a file (or add it to –draft as another motion), change a motion, or reopen –asset. |
pixling import adopt |
Save a prepared draft into the zukan as one resident, once; a reopened draft replaces its resident. |
pixling kit list |
List the speech kits: built in, and the user’s own. |
pixling kit describe |
Read one kit as drawn: its parts, colours, motion, presets, forms and notes. |
pixling kit set |
Change a kit from a JSON patch object (inline, @file, or stdin). Built-in kits copy to |
pixling kit duplicate |
Copy a kit as one of the user’s; prints its id. |
pixling kit delete |
Delete one of the user’s kits; copies over it stay as standalone kits. Built-in kits are refused. |
pixling kit import |
Import a kit folder copied into the import folder (pixling capabilities shows it), by its bare name. |
pixling kit export |
Export a built-in or user kit into the import folder as kit.json + parts/*.png. |
pixling kit preview |
Render a static offscreen PNG preview of a speech kit into the import previews folder. |
pixling kit prop-list |
List registered prop PNGs (speech-props/<sha256>.png) usable in frameSpec and props. |
pixling kit prop-import |
Register a PNG inside the import folder as a speech prop asset (speech-props/<sha256>.png). |
pixling message send |
Show a speech bubble on residents, or with –keep leave a letter that waits for the user. |
pixling question ask |
Ask one resident a question and wait for the answer. |
pixling question result |
Read, or wait for, the answer to a question asked earlier. |
pixling question cancel |
Take back your own pending question (it closes as cancelled; nothing goes to the inbox). |
pixling sequence start |
Run steps, or a saved sequence by –name, on exactly one resident. |
pixling sequence get |
Read a run’s state. |
pixling sequence cancel |
Cancel a run and its remaining steps. |
pixling sequence save |
Save steps under a name for a resident’s asset (the same name replaces it). |
pixling sequence list |
List the sequences saved for an asset. |
pixling sequence delete |
Delete one saved sequence by name. |
pixling status define |
Save or remove a status name’s look: a saved sequence to enter with and/or an idle motion or pose to hold (the same name replaces it). |
完整用法概要
「完整用法概要」一節顯示所有子指令的完整 CLI 旗標概要
pixling [--json] call <operation> [<input>]pixling [--json] rpc [--concurrency <concurrency>]pixling [--json] schema [<operation>]pixling [--json] capabilitiespixling [--json] doctorpixling [--json] inbox wait [--namespace <namespace>] [--key <key>] [--since <since>] [--timeout-ms <timeout-ms>] [--multiplex]pixling [--json] inbox receive [--namespace <namespace>] [--key <key>] [--multiplex]pixling [--json] inbox watch --namespace <namespace> --key <key> [--wait-ms <wait-ms>]pixling [--json] inbox read --namespace <namespace> --key <key> <message-id>pixling [--json] residents [--layer <layer>] [--client <client>] [--detail <detail>] [--query <query>]pixling [--json] resident place --to <to> [--x <x>] [--y <y>] [--size <size>] [--scale <scale>] [--rotation <rotation>] [--mirrored <mirrored>]pixling [--json] resident follow --to <to> [--edge <edge>] [--at <at>] [--offset-x <offset-x>] [--offset-y <offset-y>] [--layer <layer>]pixling [--json] resident describe --to <to> [--section <section> ...]pixling [--json] resident set [--to <to>] [--input <input>] [--layer <layer>] [--presence <presence>] [--gravity <gravity>] [--click-through <click-through>] [--throw <throw>] [--hidden <hidden>] [--pose <pose>] [--motion <motion>] [--idle-animation <idle-animation>] [--order <order>]pixling [--json] resident desktop-visibility --to <to> --action <action>pixling [--json] resident ensure --namespace <namespace> --key <key> [--asset-id <asset-id>] [--name <name>] [--note <note>] [--initial-note <initial-note>] [--group-id <group-id>] [--initial <initial>]pixling [--json] resident summon --who <who> [--x <x>] [--y <y>] [--size <size>] [--note <note>] [--group-id <group-id>]pixling [--json] resident duplicate --to <to>pixling [--json] resident stow --to <to>pixling [--json] resident sketch --to <to> [--columns <columns>] [--animation <animation>] [--frame <frame> ...] [--colors]pixling [--json] resident glow --to <to> [--select <select>] [--color-of <color-of> ...] [--point <point> ...] [--color <color>] [--shape <shape>] [--direction <direction>] [--duration-ms <duration-ms>] [--steps-json <steps-json>]pixling [--json] resident emote --to <to> --text <text> [--count <count>] [--color <color>] [--palette <palette>]pixling [--json] resident bounce --to <to> [--strength <strength>] [--direction <direction>]pixling [--json] resident throw --to <to> --vx <vx> --vy <vy>pixling [--json] resident status --to <to> [--name <name>] [--animation <animation>] [--pose <pose>] [--clear] [--ttl-ms <ttl-ms>]pixling [--json] resident request-close --to <to> [--author <author>] [--wait-ms <wait-ms>]pixling [--json] resident events --to <to> [--exclusive]pixling [--json] note get --scope <scope> --to <to>pixling [--json] note set --scope <scope> --to <to> --note <note>pixling [--json] settings getpixling [--json] settings set [--input <input>] [--menu-bar-icon <menu-bar-icon>] [--motion-enabled <motion-enabled>] [--login-item <login-item>] [--notify <notify>] [--sound <sound>] [--appearance <appearance>]pixling [--json] conversation read --to <to> [--offset <offset>] [--limit <limit>]pixling [--json] app quitpixling [--json] zukan [--detail <detail>] [--query <query>] [--on-desk] [--stowed] [--limit <limit>] [--offset <offset>]pixling [--json] import prepare [<paths> ...] [--draft <draft>] [--asset <asset>] [--motion <motion>] [--from <from>] [--to <to>] [--name <name> ...] [--dots <dots>] [--scale <scale>] [--foot <foot>] [--remove] [--type <type>]pixling [--json] import adopt --draft <draft> [--name <name>] [--note <note>] [--dots <dots>] [--dots-rule <dots-rule>] [--dots-thicken <dots-thicken>]pixling [--json] kit listpixling [--json] kit describe <kit>pixling [--json] kit set <kit> [<input>]pixling [--json] kit duplicate <kit> [--name <name>]pixling [--json] kit delete <kit>pixling [--json] kit import <folder> [--replace]pixling [--json] kit export <kit> [--folder <folder>] [--overwrite] [--flatten]pixling [--json] kit preview <kit> [--mode <mode>] [--text <text>] [--resident-name <resident-name>] [--width <width>] [--scale <scale>] [--for <for>]pixling [--json] kit prop-listpixling [--json] kit prop-import <file> [--label <label>]pixling [--json] message send --to <to> ... --text <text> [--font <font>] [--size <size>] [--glow-ms <glow-ms>] [--glow-point <glow-point> ...] [--action <action>] [--mood <mood>] [--author <author>] [--keep] [--status <status>] [--request-id <request-id>] [--notify] [--no-notify] [--sound] [--no-sound]pixling [--json] question ask [--request-id <request-id>] --to <to> --question <question> [--detail <detail>] --choice <choice> ... [--choice-note <choice-note> ...] [--choice-recommended <choice-recommended> ...] [--multi-select] [--free-text] [--no-free-text] [--free-text-label <free-text-label>] [--free-text-id <free-text-id>] [--wait-ms <wait-ms>] [--author <author>] [--status <status>] [--notify] [--no-notify] [--sound] [--no-sound]pixling [--json] question result <prompt-id> [--wait-ms <wait-ms>]pixling [--json] question cancel <prompt-id>pixling [--json] sequence start --to <to> [--steps <steps>] [--name <name>] [--commit <commit>] [--request-id <request-id>] [--dry-run] [--wait]pixling [--json] sequence get --run <run> [--wait-ms <wait-ms>]pixling [--json] sequence cancel --run <run>pixling [--json] sequence save --to <to> --name <name> --steps <steps> [--occasional] [--no-occasional]pixling [--json] sequence list --to <to> [--name <name>]pixling [--json] sequence delete --to <to> --name <name>pixling [--json] status define --to <to> --name <name> [--enter <enter>] [--hold-animation <hold-animation>] [--hold-pose <hold-pose>] [--remove]