4.2.8 • Published 1 year ago

@tracespace/cli v4.2.8

Weekly downloads
6
License
MIT
Repository
github
Last release
1 year ago

tracespace cli

npm

Render PCBs as SVGs from the comfort of your own terminal

The tracespace CLI provides a wrapper for gerber-to-svg and pcb-stackup so you can generate beautiful, precise SVG renders of printed circuit boards quickly and easily.

Part of the tracespace collection of PCB visualization tools.

install

npm install -g @tracespace/cli
# or
yarn global add @tracespace/cli

usage

tracespace [options] <files...>

You can also use npx to run without installing globally

npx @tracespace/cli [options] <files...>

options

All options can be specified using a config file (.tracespacerc, .tracespacerc.json, tracespace.config.js, etc.) or a "tracespace" key in package.json. Config will be loaded from the current working directory. See cosmiconfig for additional acceptable config file names and formats.

-h, --help

  • Type: boolean
  • Description: prints version and usage then exits
# Print usage
tracespace --help

-v, --version

  • Type: boolean
  • Description: prints version then exits
# Print version
tracespace --version

-o, --out, config.out

  • Type: string
  • Default: .
  • Description: Output directory (or - for stdout)
# Write SVGs into directory `./renders`
tracespace --out=renders

-B, --noBoard, config.noBoard

  • Type: boolean
  • Default: false
  • Description: Skip rendering PCB top and bottom
# Output only the individual layer renders
tracespace -B

-L, --noLayer, config.noLayer

  • Type: boolean
  • Default: false
  • Description: Skip rendering individual Gerber and drill layers
# Output only the top and bottom PCB renders
tracespace -L

-f, --force, config.force

  • Type: boolean
  • Default: false
  • Description: Attempt to render files even if they're unrecognized
# Attempt render even if whats-that-gerber cannot identify
tracespace -B --force some-file.xyz

-g, --gerber, config.gerber

  • Type: object
  • Default: {}
  • Description: Options for all gerber files (passed to gerber-to-svg)
# Set the color attribute of all Gerber SVGs
tracespace -B -g.attributes.color=blue

-d, --drill, config.drill

  • Type: object
  • Default: {}
  • Description: Options for all drill files (passed to gerber-to-svg)
# Set the color attribute of all drill SVGs
tracespace -B -d.attributes.color=red

-b, --board, config.board

  • Type: object
  • Default: {}
  • Description: Options for PCB renders (passed to pcb-stackup)
# Set the soldermask color of the board renders
tracespace -b.color.sm="rgba(128,00,00,0.75)"

-l, --layer, config.layer

  • Type: object
  • Default: {}
  • Description: Override the layers options of a given file

If you're using this option a lot, you may want to consider using a config file

# Set layer type of `arduino-uno.drd` to `drl` layer and parse as a drill file
tracespace -l.arduino-uno.drd.type=drl -l.arduino-uno.drd.options.filetype=drill

-q, --quiet, config.quiet

  • Type: boolean
  • Default: false
  • Description: Suppress informational output (info logs to stderr)
# Do not print info to stderr
tracespace --quiet
5.0.0-alpha.0

1 year ago

4.2.8

2 years ago

4.2.7

2 years ago

4.2.5

3 years ago

4.2.4

3 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

4.0.0-next.19

5 years ago

4.0.0-next.18

5 years ago

4.0.0-next.17

5 years ago

4.0.0-next.16

5 years ago

4.0.0-next.15

5 years ago

4.0.0-next.14

6 years ago

4.0.0-next.13

6 years ago

4.0.0-next.12

6 years ago