Manual
/
Automation
/
CLI Subcommands & Flags Registry
CLI Subcommands & Flags Registry
On this page
Typed command and flag catalog shared between curvebook-cli --help and this manual page (10 subcommands, 4 exit codes).
See CLI Reference for direct command flag mapping rules and error envelopes.
Global Options
Flags Default Description
-V, --version— print version and exit
-h, --help— print this help message and exit
Subcommands
info
inspect tables, info sheets, analyses, graphs, layouts, or .xlsx workbook tabs
curvebook-cli info <file> [--list-sheets] [--json]
Argument Required Description
<file>required Input .curvebook, .curvebook.d/, .cbtemplate, .prism, .pzfx, .xlsx, .csv, .tsv, or project .json path.
Flag Default Description
--list-sheetsfalse Enumerate worksheet tab names and indices in an .xlsx workbook.
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
commands
list registered engine commands with schemas, effects and shortcuts
curvebook-cli commands [--group <group>] [--json]
Flag Default Description
--group <group>all groups Filter by CommandGroup (project, edit, sheet, table, info, analysis, graph, layout, export).
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
direct-command
execute a registered engine command directly with schema-typed flags
curvebook-cli <command-id> [--in <file>] [--out <file>] [--workdir <dir>] [--json] [--<param> <val> ...]
Argument Required Description
<command-id>required Registered engine command identifier (for example sheet.createData, stats.run, fit.run).
Flag Default Description
--in <file>fresh empty session Load an existing project or interchange file before executing the command.
--out <file>none (in-memory only) Write the resulting project or sheet export to <file> after execution.
--workdir <dir>unconstrained (current working directory) Confine all file reads, saves, exports, and external CSV/TSV links strictly within <dir>.
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
--<param> <val>per-command schema default Schema-typed command parameter flag (--no-<param> negates boolean parameters).
run
execute a JSON-lines command stream headlessly
curvebook-cli run <script> [--workdir <dir>] [--json]
Argument Required Description
<script>required Path to an NDJSON or JSON-array command script file, or - to read from stdin.
Flag Default Description
--workdir <dir>unconstrained (current working directory) Confine all file reads, saves, exports, and external CSV/TSV links strictly within <dir>.
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
batch
execute a curvebook.batch.v1 JSON manifest headlessly
curvebook-cli batch <manifest> [--workdir <dir>] [--json]
Argument Required Description
<manifest>required Path to a curvebook.batch.v1 JSON manifest file, or - to read from stdin.
Flag Default Description
--workdir <dir>unconstrained (current working directory) Confine all file reads, saves, exports, and external CSV/TSV links strictly within <dir>.
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
convert
convert archives/unpacked .curvebook.d dirs or export tables and figures (curvebook, curvebook.d, svg, pdf, emf, png, tiff, csv, tsv, json)
curvebook-cli convert <in> <out> [--format <fmt>] [--sheet <id>] [--dpi <u16>] [--pdf-version <1.4|1.7>] [--ttf-font <path>] [--json]
Argument Required Description
<in>required Input project archive, .curvebook.d/, template, or data file.
<out>optional Output path (may instead be passed via --out / -o).
Flag Default Description
-o, --out <out>positional <out> Explicit output file or .curvebook.d directory path.
--format <fmt>inferred from <out> extension Explicit target format (curvebook, curvebook.d, svg, pdf, emf, png, tiff, csv, tsv, json).
--sheet <id>first matching sheet Target sheet ID or title to export.
--xlsx-sheets <names>all visible sheets Comma-separated .xlsx worksheet names to import from an input workbook.
--dpi <u16>300 Rasterization resolution in dots per inch for png and tiff exports (18..=2400).
--pdf-version <1.4|1.7>1.7 PDF specification level for pdf exports (1.4 or 1.7).
--ttf-font <path>none Optional TrueType .ttf font file embedded as /FontFile2 in pdf exports.
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
export
export a table, graph, layout, or project to svg, pdf, emf, png, tiff, csv, tsv, json, or .curvebook/.curvebook.d
curvebook-cli export <in> (<out> | --out <out>) [--format <fmt>] [--sheet <id>] [--dpi <u16>] [--pdf-version <1.4|1.7>] [--ttf-font <path>] [--json]
Argument Required Description
<in>required Input project archive, .curvebook.d/, template, or data file.
<out>optional Output path (or supply --out <out> / -o <out>).
Flag Default Description
-o, --out <out>positional <out> Explicit output file or .curvebook.d directory path.
--format <fmt>inferred from <out> extension Explicit target format (curvebook, curvebook.d, svg, pdf, emf, png, tiff, csv, tsv, json).
--sheet <id>first matching sheet Target sheet ID or title to export.
--xlsx-sheets <names>all visible sheets Comma-separated .xlsx worksheet names to import from an input workbook.
--dpi <u16>300 Rasterization resolution in dots per inch for png and tiff exports (18..=2400).
--pdf-version <1.4|1.7>1.7 PDF specification level for pdf exports (1.4 or 1.7).
--ttf-font <path>none Optional TrueType .ttf font file embedded as /FontFile2 in pdf exports.
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
bench
measure parse, recalculation, compilation and export timings
curvebook-cli bench <file> [--json]
Argument Required Description
<file>required Project file to benchmark.
Flag Default Description
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
perf
run synthetic G12 performance checks
curvebook-cli perf [--json] [--require-release]
Flag Default Description
--jsonfalse Emit structured JSON output (and structured JSON errors on failure).
--require-releasefalse Fail immediately unless curvebook-cli was compiled in --release mode.
mcp
run the Model Context Protocol (MCP) server over stdio (--workdir and --control-port are mutually exclusive)
curvebook-cli mcp [--control-port <port>] [--gui-only] [--workdir <dir>] [--control-token <token>]
Flag Default Description
--control-port <port>CURVEBOOK_CONTROL_PORT env or headless Attach over loopback 127.0.0.1:<port> to a running curvebook --control <port> window (1..=65535; mutually exclusive with --workdir).
--gui-onlyfalse Expose strictly the human-equivalent gui MCP tools (GuiOnlyPolicy::Strict).
--workdir <dir>unconfined Confine all MCP file/command paths strictly within directory <dir> (mutually exclusive with --control-port, which attaches to an external desktop host).
--control-token <token>CURVEBOOK_CONTROL_TOKEN env or control-<port>.token Bearer token used to authenticate against a --control desktop listener.
Exit Codes
Code Constant Condition
0EXIT_OKCommand completed cleanly.
1EXIT_RUNTIMERuntime, filesystem I/O, archive/format, solver, rendering, or engine execution error.
2EXIT_USAGE_OR_POLICYInvalid CLI syntax, unknown flag/command, malformed batch/script schema, or --workdir path containment violation.
130EXIT_INTERRUPTEDOperation cancelled or interrupted (SIGINT / ErrorCode::Cancelled).