Skip to main content
Use this guide to install 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 board uses to initialize a repository.
  • KiCad 10.x for layout generation and editing. pcb build does 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:
The installer adds pcb to your user PATH when necessary. Restart the shell if the command is not available, then verify the installation:
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:
A successful build exits without validation errors.

4. Generate the layout

Generate the KiCad files without opening KiCad:
This command writes the generated board under layout/.

Troubleshooting

  • If the shell cannot find pcb after installation, restart the shell or source the environment file printed by the installer.
  • If pcb layout cannot find KiCad, install kicad-cli and pcbnew. Set KICAD_CLI or KICAD_PCBNEW if either executable is outside its default platform path.
  • Run pcb help or pcb help <command> for the complete CLI reference.