CLI Reference

All typeCAD commands are accessed through the typecad binary, included with @typecad/typecad.

Global Options

OptionDescription
--jsonOutput results as JSON
--helpShow help for any command
--versionShow the typeCAD version

Commands

typecad create

Create a new typeCAD project.

typecad create [options]
OptionDescription
--name <name>Project name
--pio <true\|false>Create a PlatformIO project
--board <id>PlatformIO board ID
--git <true\|false>Initialize a git repository
--packages <list>Comma-separated list of packages to install

typecad build

Build the typeCAD project and generate KiCAD output files.

typecad build [options]
OptionDescription
--verboseShow detailed build output

typecad add component

Add a component to the project.

typecad add component [options]
OptionDescription
--symbol_source <kicad\|local\|jlcpcb>Source for the symbol file
--footprint_source <kicad\|local\|jlcpcb>Source for the footprint file
--symbol <library:symbol>Symbol library path and name
--footprint <library:footprint>Footprint library path and name
--c <C###>JLCPCB component number
--symbol_file <path>Path to local symbol file
--footprint_file <path>Path to local footprint file

typecad add package

Create a reusable typeCAD package.

typecad add package [options]
OptionDescription
--empty <true\|false>Create an empty package
--component <true\|false>Create a component-based package
--name <name>Package name
--kicad <true\|false>Use KiCAD as source
--local <true\|false>Use local files as source
--jlcpcb <true\|false>Use JLCPCB as source
--symbol <library:symbol>Symbol for component package
--footprint <library:footprint>Footprint for component package
--c <C###>JLCPCB component number

typecad search

Search KiCAD symbol libraries with fuzzy matching.

typecad search <query> [options]
OptionDescription
--format <text\|json>Output format (default: text)
--sort <field>Sort results by field
--limit <n>Maximum number of results

typecad import

Convert a KiCAD PCB file to typeCAD code.

typecad import <pcb_file> [options]
OptionDescription
--applyInteractively apply coordinates to source files

typecad diff

Compare two KiCAD PCB files visually.

typecad diff <original> <modified> [options]
OptionDescription
--fullCompare all layers
--theme <name>Color theme for the report
--output <path>Output HTML file path

typecad doc

Generate HTML documentation from Markdown + KiCAD PCB.

typecad doc <markdown> <pcb> [options]
OptionDescription
-o <path>Output HTML file path
-vVerbose output
-qQuiet mode
--no-openDon’t open the file after generation

typecad doctor

Check your environment for required tools.

typecad doctor [options]
OptionDescription
--fixAttempt automatic fixes
--jsonMachine-readable output

typecad validate

Validate source without full build.

typecad validate [options]
OptionDescription
--verboseShow detailed output
--jsonMachine-readable output

typecad drc

Run KiCAD Design Rule Check.

typecad drc [options]
OptionDescription
--jsonMachine-readable output

typecad erc

Run KiCAD Electrical Rules Check.

typecad erc [options]
OptionDescription
--jsonMachine-readable output

typecad skills

List and query typeCAD skills and API patterns.

typecad skills list [options]
typecad skills get <name> [options]
SubcommandDescription
listList all available skills, grouped by category
get <name>Show details for a specific skill (usage, parameters, examples)
OptionDescription
--jsonMachine-readable output
typecad skills list
typecad skills get resistor
typecad skills get power --json