pcb -V (return code: 0)
PCB version 20140316
pcb -HELP (return code: 1)
PCB Printed Circuit Board editing program, http://pcb.geda-project.org
pcb [-h|-V|--copyright] Help, version, copyright
pcb [gui options] <pcb file> to edit
Available GUI hid:
gtk Gtk - The Gimp Toolkit
pcb -p [printing options] <pcb file> to print
Available printing hid:
lpr Postscript print
pcb -x hid [export options] <pcb file> to export
Available export hids:
bom Exports a Bill of Materials
gcode G-CODE export
gerber RS-274X (Gerber) export
nelma Numerical analysis package export
png GIF/JPEG/PNG export
ps Postscript export
eps Encapsulated Postscript
gtk gui options:
--listen Listen for actions on stdin
--bg-image <string> Background Image
--pcb-menu <string> Location of gpcb-menu.res file
lpr options:
--lprcommand <string> Command to use for printing
--drill-helper Print a centering target in large drill holes
--align-marks Print alignment marks on each sheet
--outline Print outline on each sheet
--mirror Print mirror image of every page
--fill-page Scale board to fill page
--auto-mirror Print mirror image of appropriate layers
--ps-color Prints in color
--ps-bloat <measure> Amount to add to trace/pad/pin edges
--ps-invert Draw objects as white-on-black
--media <A0|A1|A2|A3|A4|A5|A6|A7|A8|A9|A10|B0|B1|B2|B3|B4|B5|B6|B7|B8|B9|B10|Letter|11x17|Ledger|Legal|Executive|A-Size|B-size|C-Size|D-size|E-size|US-Business_Card|Intl-Business_Card>
Media type
--psfade <num> Fade amount for assembly drawings (0.0=missing, 1.0=solid)
--scale <num> Scale value to compensate for printer sizing errors (1.0 = full scale)
--multi-file Produce multiple files, one per page, instead of a single file
--xcalib <num> Paper width. Used for x-Axis calibration
--ycalib <num> Paper height. Used for y-Axis calibration
--drill-copper Draw drill holes in pins / vias, instead of leaving solid copper
--show-legend Print file name and scale on printout
bom options:
--bomfile <string> Name of the BOM output file
--xyfile <string> Name of the XY output file
--xy-unit <km|m|cm|mm|um|nm|px|in|mil|dmil|cmil> XY units
gcode options:
--basename <string> File name prefix and suffix,
layer names will be inserted before the suffix.
--measurement-unit <km|m|cm|mm|um|nm|px|in|mil|dmil|cmil>
Measurement unit used in the G-code output.
--dpi <num> Accuracy of the mill path generation in pixels/inch.
--safe-Z <num> Safe Z for traverse movements of all operations.
--iso-mill-depth <num> Isolation milling depth.
--iso-tool-diameter <num> Isolation milling tool diameter.
--iso-tool-plunge <num> Isolation milling feedrate when plunging into
the material.
--iso-tool-feedrate <num> Isolation milling feedrate.
--predrill Wether to pre-drill all drill spots with the isolation milling
tool. Drill depth is iso-mill-depth here. This feature eases
and enhances accuracy of manual drilling.
--drill-depth <num> Drilling depth.
--drill-feedrate <num> Drilling feedrate.
--drill-mill Wether to produce drill holes equal or bigger than the
milling tool diameter with the milling tool.
With the milling tool bigger holes can be accurately sized
without changing the tool
--outline-mill-depth <num> Milling depth when milling the outline.
Currently, only the rectangular extents of the
board are milled, no polygonal outlines or holes.
--outline-tool-diameter <num> Diameter of the tool used for outline milling.
--outline-mill-plunge <num> Outline milling feedrate when plunging into
the material
--outline-mill-feedrate <num> Outline milling feedrate
--advanced-gcode Wether to produce G-code for advanced interpreters,
like using variables or drill cycles. Not all
machine controllers understand this, but it allows
better hand-editing of the resulting files.
gerber options:
--gerberfile <string> Gerber output file base
--all-layers Output all layers, even empty ones
--verbose Print file names and aperture counts on stdout
--metric Generate metric Gerber and drill files
--copy-outline <none|mask|silk|all> Copy outline onto other layers
--name-style <fixed|single|first|eagle|hackvana>
Naming style for individual gerber files
nelma options:
--basename <string> File name prefix
--dpi <num> Horizontal scale factor (grid points/inch)
--copper-height <num> Copper layer height (um)
--substrate-height <num> Substrate layer height (um)
--substrate-epsilon <num> Substrate relative epsilon
png options:
--outfile <string> Graphics output file
--dpi <num> Scale factor (pixels/inch). 0 to scale to specified size
--x-max <num> Maximum width (pixels). 0 to not constrain
--y-max <num> Maximum height (pixels). 0 to not constrain
--xy-max <num> Maximum width and height (pixels). 0 to not constrain
--as-shown Export layers as shown on screen
--monochrome Convert to monochrome
--only-visible Limit the bounds of the PNG image to the visible items
--use-alpha Make the background and any holes transparent
--fill-holes Drill holes in pins/pads are filled, not hollow
--format <PNG|GIF|JPEG> Export file format
--png-bloat <string> Amount (in/mm/mil/pix) to add to trace/pad/pin edges (1 = 1/100 mil)
--photo-mode Photo-realistic export mode
--photo-flip-x Show reverse side of the board, left-right flip
--photo-flip-y Show reverse side of the board, up-down flip
--photo-mask-colour <green|red|blue|purple|black|white>
Colour for the exported colour mask
--photo-plating <tinned|gold|silver|copper>
Type of plating applied to exposed copper in photo-mode
--photo-silk-colour <white|black|yellow>
Colour for the exported colour mask
ps options:
--psfile <string> Postscript output file
--drill-helper Print a centering target in large drill holes
--align-marks Print alignment marks on each sheet
--outline Print outline on each sheet
--mirror Print mirror image of every page
--fill-page Scale board to fill page
--auto-mirror Print mirror image of appropriate layers
--ps-color Prints in color
--ps-bloat <measure> Amount to add to trace/pad/pin edges
--ps-invert Draw objects as white-on-black
--media <A0|A1|A2|A3|A4|A5|A6|A7|A8|A9|A10|B0|B1|B2|B3|B4|B5|B6|B7|B8|B9|B10|Letter|11x17|Ledger|Legal|Executive|A-Size|B-size|C-Size|D-size|E-size|US-Business_Card|Intl-Business_Card>
Media type
--psfade <num> Fade amount for assembly drawings (0.0=missing, 1.0=solid)
--scale <num> Scale value to compensate for printer sizing errors (1.0 = full scale)
--multi-file Produce multiple files, one per page, instead of a single file
--xcalib <num> Paper width. Used for x-Axis calibration
--ycalib <num> Paper height. Used for y-Axis calibration
--drill-copper Draw drill holes in pins / vias, instead of leaving solid copper
--show-legend Print file name and scale on printout
eps options:
--eps-file <string> Encapsulated Postscript output file
--eps-scale <num> EPS scale
--as-shown Export layers as shown on screen
--monochrome Convert to monochrome
--only-visible Limit the bounds of the EPS file to the visible items
Common options:
--help Show help on command line options
--version Show version
--verbose Be verbose on stdout
--copyright Show Copyright
--show-defaults Show option defaults
--show-actions Show available actions
--dump-actions Dump actions (for documentation)
--grid-units <string> Default grid units (mm|mil)
--clear-increment-mm <measure> Default clear increment amount (metric)
--grid-increment-mm <measure> Default grid increment amount (metric)
--line-increment-mm <measure> Default line increment amount (metric)
--size-increment-mm <measure> Default size increment amount (metric)
--clear-increment-mil <measure>
Default clear increment amount (imperial)
--grid-increment-mil <measure> Default grid increment amount (imperial)
--line-increment-mil <measure> Default line increment amount (imperial)
--size-increment-mil <measure> Default size increment amount (imperial)
--black-color <string> color value of 'black'
--white-color <string> color value of 'white'
--background-color <string> color for background
--crosshair-color <string> color for the crosshair
--cross-color <string> color of the cross
--via-color <string> color of vias
--via-selected-color <string> color for selected vias
--pin-color <string> color of pins
--pin-selected-color <string> color of selected pins
--pin-name-color <string> color for pin names and pin numbers
--element-color <string> color of components
--rat-color <string> color of ratlines
--invisible-objects-color <string> color of invisible objects
--invisible-mark-color <string> color of invisible marks
--element-selected-color <string> color of selected components
--rat-selected-color <string> color of selected rats
--connected-color <string> color to indicate physically connected objects
--found-color <string> color to indicate logically connected objects
--off-limit-color <string> color of off-canvas area
--grid-color <string> color of the grid
--layer-color-1 <string> Color for layer 1
--layer-color-2 <string> Color for layer 2
--layer-color-3 <string> Color for layer 3
--layer-color-4 <string> Color for layer 4
--layer-color-5 <string> Color for layer 5
--layer-color-6 <string> Color for layer 6
--layer-color-7 <string> Color for layer 7
--layer-color-8 <string> Color for layer 8
--layer-color-9 <string> Color for layer 9
--layer-color-10 <string> Color for layer 10
--layer-color-11 <string> Color for layer 11
--layer-color-12 <string> Color for layer 12
--layer-color-13 <string> Color for layer 13
--layer-color-14 <string> Color for layer 14
--layer-color-15 <string> Color for layer 15
--layer-color-16 <string> Color for layer 16
--layer-selected-color-1 <string> Color for layer 1 when selected
--layer-selected-color-2 <string> Color for layer 2 when selected
--layer-selected-color-3 <string> Color for layer 3 when selected
--layer-selected-color-4 <string> Color for layer 4 when selected
--layer-selected-color-5 <string> Color for layer 5 when selected
--layer-selected-color-6 <string> Color for layer 6 when selected
--layer-selected-color-7 <string> Color for layer 7 when selected
--layer-selected-color-8 <string> Color for layer 8 when selected
--layer-selected-color-9 <string> Color for layer 9 when selected
--layer-selected-color-10 <string> Color for layer 10 when selected
--layer-selected-color-11 <string> Color for layer 11 when selected
--layer-selected-color-12 <string> Color for layer 12 when selected
--layer-selected-color-13 <string> Color for layer 13 when selected
--layer-selected-color-14 <string> Color for layer 14 when selected
--layer-selected-color-15 <string> Color for layer 15 when selected
--layer-selected-color-16 <string> Color for layer 16 when selected
--warn-color <string> color of offending objects during DRC
--mask-color <string> color for solder mask
--via-thickness <measure> default diameter of vias in 1/100 mil
--via-drilling-hole <measure> default diameter of holes
--line-thickness <measure> initial thickness of new lines
--rat-thickness <measure> thickness of rat lines
--keepaway <measure> minimum distance between adjacent copper
--default-PCB-width <measure> default width of the canvas
--default-PCB-height <measure> default height of the canvas
--text-scale <num> default text scale in percent
--alignment-distance <measure> distance between the boards outline and alignment targets
--bloat <measure> DRC minimum spacing in 1/100 mil
--shrink <measure> DRC minimum overlap in 1/100 mils
--min-width <measure> DRC minimum copper spacing
--min-silk <measure> DRC minimum silk width
--min-drill <measure> DRC minimum drill diameter
--min-ring <measure> DRC minimum annular ring
--grid <measure> Initial grid size in 1/100 mil
--minimum polygon area <num>
--backup-interval <num> Time between automatic backups in seconds. Set to 0 to disable
--layer-name-1 <string> Name for layer 1
--layer-name-2 <string> Name for layer 2
--layer-name-3 <string> Name for layer 3
--layer-name-4 <string> Name for layer 4
--layer-name-5 <string> Name for layer 5
--layer-name-6 <string> Name for layer 6
--layer-name-7 <string> Name for layer 7
--layer-name-8 <string> Name for layer 8
--groups <string> Layer group string
--font-command <string> Command to load a font
--file-command <string> Command to read a file
--element-command <string> Command to read a footprint
--print-file <string> Command to print to a file
--lib-command-dir <string> Path to the command that queries the library
--lib-command <string> Command to query the library
--lib-contents-command <string>
Command to query the contents of the library
--lib-newlib <string> Top level directory for the newlib style library
--save-command <string> Command to save to a file
--lib-name <string> The default filename for the library
--default-font <string> File name of default font
--route-styles <string> A string that defines the route styles
--file-path <string>
--rat-command <string> Command for reading a netlist
--font-path <string> Colon separated list of directories to search the default font
--element-path <string> A colon separated list of directories or commands (starts with '|')
--lib-path <string> A colon separated list of directories
--action-script <string> If set, this file is executed at startup
--action-string <string> If set, this is executed at startup
--fab-author <string> Name of author to be put in the Gerber files
--layer-stack <string> Initial layer stackup, for setting up an export.
--make-program <string> Sets the name and optionally full path to a make(3) program
--gnetlist <string> Sets the name and optionally full path to the gnetlist(3) program
--pinout-offset-x <measure> Horizontal offset of the pin number display in mil
--pinout-offset-y <measure> Vertical offset of the pin number display in mil
--pinout-text-offset-x <measure>
Horizontal offset of the pin name display in mil
--pinout-text-offset-y <measure>
Vertical offset of the pin name display in mil
--draw-grid If set, draw the grid at start-up
--clear-line If set, new lines clear polygons
--full-poly
--unique-names Prevents identical component names
--snap-pin If set, the cursor snaps to pads and pin centers
--save-last-command
--save-in-tmp When set, all data which would otherwise be lost are saved in /tmp
--all-direction-lines Allow all directions, when drawing new lines
--show-number Pinout shows number
--reset-after-element If set, all found connections are reset before a new component is scanned
--ring-bell-finished Execute the bell command when all rats are routed