Calculate price

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.

Price a boardQuotes, production dates and delivery for your parameters.
Place the orderCreates the draft, sets shipping and billing, submits it for review.
Upload from disk+upload board.zip --order <order> sends the Gerber archive to the order.
Get the payment page+pay <order> prints what is due and opens the page. You pay there; the CLI never does.
Claude Code orders 10 boards with the CLI: a real session on our test stand, replayed step by step.

Install

One command installs a single binary. No Node.js, no sudo. Run it again to upgrade.

1

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

  1. 2

    Sign in once. The browser opens: allow the CLI.

    circuitninja +login
  2. 3

    No browser on this machine (SSH, a sandbox)? Run this and confirm the code it shows on circuitninja.com/app/device from any device.

    circuitninja +login --device
  3. 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: +upload reads 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.

Install the CLI