This site uses cookies. By using this site, you agree to our use of cookies. Learn more

Command Line

A Circuit Diagram command line application is available for performing operations on circuits and components. It can also be used with the Visual Studio Code extension.

Installation

Download the command-line application for your platform from the downloads page. Once you have downloaded this, follow the additional instructions for your platform below.

Windows
  1. Extract the contents of the .zip file
Linux
  1. Extract the contents of the .tar.xz file
  2. Download libSkiaSharp.so from the SkiaSharp project releases
  3. Place libSkiaSharp.so in the same directory as the extracted files from step (1)

Usage

For full usage information, run circuit-diagram-cli --help.

Render a Circuit

Rendering a CDDX circuit requires a copy of the components used in that circuit to be available. Download any components that you need (or all of the components) and place them in a local directory.

The following command renders a CDDX circuit as a PNG image.

circuit-diagram-cli circuit --components path/to/components/directory -o render.png circuit.cddx

The dimensions of the rendered image are determined by the dimensions of the input circuit.