pcb, create a board repository, validate its Zener
source, and generate a KiCad layout.
Requirements
- macOS or Linux. Windows support is experimental; use WSL2 for the most stable Windows environment.
- Git, which
pcb new boarduses to initialize a repository. - KiCad 10.x for layout generation and editing.
pcb builddoes not require KiCad.
1. Install pcb
The pcb launcher downloads and runs the pcbc toolchain selected by each
project. Run the installer for your platform:
pcb to your user PATH when necessary. Restart the shell
if the command is not available, then verify the installation:
Install from source
Install from source
Install Rust, then clone the repository and
run the local installer:
2. Create a board repository
Replace the example repository URL with the project repository URL:pcb new board creates pcb.toml, Blinky.zen, and a Git repository. The
generated design is empty but valid.
3. Build the board
Validate the board source and generate its netlist:4. Generate the layout
Generate the KiCad files without opening KiCad:layout/.
Troubleshooting
- If the shell cannot find
pcbafter installation, restart the shell or source the environment file printed by the installer. - If
pcb layoutcannot find KiCad, installkicad-cliandpcbnew. SetKICAD_CLIorKICAD_PCBNEWif either executable is outside its default platform path. - Run
pcb helporpcb help <command>for the complete CLI reference.