CmdID

CmdID / Commands

d2

A modern diagram scripting language that turns text to diagrams. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

A modern diagram scripting language that turns text to diagrams. Note: The output file supports SVG and PNG file formats.

Compile and render a D2 source file into an output file

d2 path/to/input_file.d2 path/to/output_file.extIdentify

Watch live changes made to a D2 source file in the default web browser

d2 --watch path/to/input_file.d2 path/to/output_file.extIdentify

Format a D2 source file

d2 fmt path/to/input_file.d2Identify

List available themes

d2 themesIdentify

Use a different theme for the output file (list available themes first to get the desired theme_id)

d2 --theme theme_id path/to/input_file.d2 path/to/output_file.extIdentify

Make rendered diagrams look like hand sketches

d2 --sketch true path/to/input_file.d2 path/to/output_file.extIdentify