SolidCraft CLI: run models without a window
solidcraft-cli is the headless face of the same engine — command scripts, measurements, batch exports and the MCP server, all driven by the JSON commands the toolbar uses.
Command names verified in the v0.50.0 documentation · the old solvecraft-cli name was removed in this release
Why the CLI is the interesting part
In SolidCraft, everything the interface can do is a command with JSON parameters. The toolbar runs commands, the dialogs run commands, the control channel runs commands, the MCP server runs commands — and solidcraft-cli runs commands. That symmetry is the reason a script written by hand and a model built by an agent are the same kind of object.
So the CLI is not a bolted-on batch tool. It is the headless face of the application.
What you can do with it
- Run a command script. A JSON list of commands, executed in order — open a design, set parameters, rebuild, measure, export.
- Open and convert files. Point it at a
.sc, STEP or other supported file and let it run without a window. - Measure and report. Bounding boxes, mass properties and volumes, pulled into a build log or a spreadsheet.
- Serve MCP.
solidcraft-cli mcpis the headless MCP server covered on the MCP page; the same binary, a different mode.
The CLI ships with the desktop installers, which means on Windows older installers did not put it on PATH — the default location is "C:\Program Files\SolidCraft\solidcraft-cli.exe".
A realistic use
You have one bracket design with three parameters — length, hole spacing and thickness — and you need forty variants as STEP files for a supplier quote. Doing that by hand is an afternoon of clicking. Doing it with a script is a loop over three numbers and one command list, run once, producing forty files and a CSV of the measurements. That is the job the CLI exists for.
The same applies to CI: a repository of .sc designs can be validated on every commit — open, rebuild with --param-check strict, export, compare bounding boxes. A design that no longer rebuilds fails the build, which is the CAD equivalent of a failing test.
Flags that matter
The CLI shares its flags with the MCP server, because it is the same engine:
--param-check off|warn|strict—strictrejects out-of-range values instead of producing a model that cannot rebuild.--allow-path DIR— the directories the process may read and write. Repeatable.--require-allow-path— refuse to run without an explicit allowed directory.--token,SOLIDCRAFT_CONTROL_TOKEN,SOLIDCRAFT_CONTROL_PORT— for bridged connections to a running app.
For unattended runs, strict plus an explicit --allow-path is the configuration to start from. --allow-any-path belongs in a throwaway container, not on your workstation.
Plugins
The project has a plugin system built on WebAssembly components, targeting a craft:plugin world with a commands capability, discovered from a per-user plugins directory. It is early: if you are writing a plugin, read the repository rather than a guide written last month, because the interface version is pinned and will move.
What the CLI does not do
No CAM output, no finite-element analysis, no drawing production. Those areas are deferred in the application itself, so they are absent here too. A script cannot export a toolpath the modeller cannot generate.
Where to go next
If you want the agent version of the same capability, the MCP setup page covers the client configuration and the folder permissions. If you want to know what the commands are called, the documentation's feature list enumerates them by area — and that list is generated from the same command registry the CLI uses, which is the least glamorous and most reliable page on the official docs.