CLI tool
The CircuitNinja CLI orders boards from your terminal. It prices a board, places the order, uploads the Gerber archive and gives you the payment page. An AI agent with a shell can use it the same way.
Free · open source (MIT) · macOS, Linux and Windows · x64 and arm64
What it does
Commands come from the platform, so a tool CircuitNinja adds is a command here without an update.
+upload board.zip --order <order> sends the Gerber archive to the order.+pay <order> prints what is due and opens the page. You pay there; the CLI never does.Install
One command installs a single binary. No Node.js, no sudo. Run it again to upgrade.
macOS and Linux. Run it in a terminal. It installs into ~/.local/bin.
curl -fsSL https://circuitninja.com/cli/install.sh | sh
Windows. Run it in PowerShell. It installs into %LOCALAPPDATA%\Programs\circuitninja.
irm https://circuitninja.com/cli/install.ps1 | iex
Then, either way
- 2
Sign in once. The browser opens: allow the CLI.
circuitninja +login
- 3
No browser on this machine (SSH, a sandbox)? Run this and confirm the code it shows on
circuitninja.com/app/devicefrom any device.circuitninja +login --device
- 4
See the ordering steps.
circuitninja guide
For agents
The CLI is made to be called by an agent as well as typed by a person.
- Output is JSON when it is not a terminal.
- An error is one object with a code, a message and whether to retry.
- It never prompts. A missing input is an error that names the flag.
- Files stay out of the conversation:
+uploadreads the archive from disk.
A skill teaches your agent the CLI:
gh skill install CircuitNinjaPCB/circuitninja-cli circuitninja --scope user
For CI, set CIRCUITNINJA_TOKEN instead of signing in.
Compatibility
- Systems
- macOS, Linux (glibc and musl), Windows
- Processors
- x64 and arm64
- Needs
- Nothing else installed. On Alpine:
apk add libstdc++ libgcc. - Sign-in
- In the browser, or with a device code on a machine without one. Revoke it any time in Settings → AI agents.
Source code, releases and the full command reference: github.com/CircuitNinjaPCB/circuitninja-cli
Ready to order?
Price your board from the terminal, or drop the ZIP into the price calculator.