lepton-cli(1)
π lepton-cli β the Lepton EDA Command-Line Utility π
okay bestie, welcome to lepton-cli β manual section 1, and yes this is the 1.9.18.20220529 era of the page, so that's the vibe we're working with π«Ά
β¨ NAME β¨
lepton-cli β the Lepton EDA Command-Line Utility. that's it, that's the name, she's iconic π
πΈ SYNOPSIS πΈ
lepton-cli [OPTION ...] COMMAND [ARGS ...]
π¦ DESCRIPTION π¦
so lepton-cli is part of the Lepton EDA (Electronic Design Automation) toolset, no cap. it hands you a lil bundle of small command-line utilities for working with schematic and symbol files, and it's literally designed for batch processing of designs you made with the schematic editor lepton-schematic(1). main character energy fr fr.
right now she ships with three built-in COMMANDs:
lepton-cli exportβ this one creates SVG, PDF, PNG, PS and EPS files from schematic and symbol files, for printing or for embedding in other documents. obsessed.lepton-cli configβ lets you read and write settings in the Lepton EDA project, user and system configuration stores. the settings whisperer πlepton-cli shellβ provides a Scheme REPL for command-line batch processing of schematic data. yes queen, a whole REPL π
β GENERAL OPTIONS β
--no-rcfilesβ stopsgafrcScheme initialisation files from being loaded. bye bestie π-h,--helpβ prints a help message.-V,--versionβ printslepton-cliversion information.
π₯ EXPORTING IMAGE FILES π₯
lepton-cli export [OPTION ...] -o OUTPUT [--] FILE ...
lepton-cli export can export schematic and symbol files in a whole variety of image formats, whether you're printing them or processing them further. as of rn it supports single-page PNG, SVG and EPS output, plus multi-page PS and PDF output. and she accepts a bunch of options for controlling exactly how the output gets formatted. so many knobs, so much power β¨
-o,--output=FILEβ outputs the generated image data to FILE.-f,--format=(png | pdf | svg | ps | eps)β specify an output format. usually you don't even need this option, becauselepton-cli exportwill infer the correct format from the file extension of the output file. she's smart like that π-p,--paper=NAMEβ sizes the output for a particular paper size. the NAME should be a PWG 5101.1-2002 paper name. for example, valid values includeiso_a4,na_letter, orna_d.-P,--paper-namesβ prints paper size names suitable to pass to the--paperoption, then exits. a little menu, a little snack π-l,--layout=(auto | landscape | portrait)β when you're using a paper size, this sets the orientation of the output. ifautolayout is used, whichever orientation best fits the drawing gets used.-s,--size=(auto | WIDTH:HEIGHT)β sizes the output with specific dimensions. if the size isauto, she picks the size that best fits the drawing.-k,--scale=FACTOR Set the output scale FACTOR.β this is a distance identical with 100 points (1 default grid spacing) inlepton-schematic(1)coordinate space. it's used to size the output when neither--papernor--sizeare given, and it defaults to 100 mil.-m,--margins=(auto | TOP[:LEFT[:BOTTOM[:RIGHT]]])β sets the widths of the margins to be used. ifautomargins are specified, a sensible default value will be chosen. up to four margin widths can be provided:- if one is provided, it will be used on all four sides.
- if two are provided, the first will be used for the top/bottom and the second for the left/right.
- if three are provided, the first will be used for the top, the second for left/right, and the third for the bottom.
-a,--align=(auto | HALIGN:VALIGN)β sets how the drawing is aligned within the page. HALIGN controls the horizontal alignment, and VALIGN the vertical. each alignment value should be in the range0.0to1.0. theautoalignment is equivalent to a value of0.5:0.5, i.e. centered. perfect centering, we love to see it π«Ά-d,--dpi=DPIβ sets the number of pixels per inch used when generating PNG output.-c,--colorβ enables colour output. π--no-colorβ disables color output.-F,--font=FONT-FAMILYβ sets the font to be used for drawing text.--β treats all remaining arguments as schematic or symbol filenames. use this if you have a schematic or symbol filename which begins with-. sneaky little dash filenames, not today π
the --size, --margins, or --scale options described above accept values using units of mm, cm, in, pc, px, or pt. if you do not provide a unit, points are assumed. n.b. that px are evaluated relative to the current --dpi setting. noted, bestie π
when using the --size, --margins, or --align options with multiple values, you may use ;, or as a separator between them instead of :. in such a case, remember to properly quote your arguments to avoid them to be interpreted by your shell. > no seriously, quote them β your shell is nosy and will absolutely eat your arguments π
π ACCESSING CONFIGURATION π
lepton-cli config [OPTION] [GROUP KEY [VALUE]]
lepton-cli config is a basic utility for inspecting and modifying Lepton EDA configuration stores. simple, effective, does her job π
if a GROUP and KEY are specified, it retrieves the value of that configuration parameter. if a VALUE is specified, it sets the value of that parameter. the -p, -u and -s options can be used to select the configuration store affected (by default, the project configuration store for the current working directory). and if no GROUP and KEY are provided, it outputs the filename of the selected configuration store. peek behind the curtain β¨
-p [PATH],--project[=PATH]β selects the project configuration store of the project located in PATH. if no PATH is provided, it selects the project in the current working directory. unlike--project, for which an optional argument must be specified using=, any argument after-pis considered to be a path, not a configuration group. it may be specified as-pPATHor-p PATH.-u,--userβ selects the user configuration store.-s,--systemβ selects the system configuration store. depending on user permissions, the system configuration store may be read-only. > heads up: read-only means read-only, don't fight her π-c,--cacheβ selects the program-specific configuration store (CACHE configuration context, associated with$XDG_CACHE_HOME/lepton-eda/gui.confconfiguration file).
π§ SCHEME PROCESSING π§
lepton-cli shell [OPTION ...]
lepton-cli shell provides a Scheme Read-Eval-Print Loop (REPL) for automating processing of schematic and symbol files. she's designed to be used with the Lepton EDA Scheme API. automation queen π
-s FILEβ evaluates Scheme source code from FILE, and exits.-c EXPRβ evaluates the Scheme expression EXPR, and exits.--β stops scanning arguments; runs interactively.-L DIRECTORYβ prepends DIRECTORY to the list of directories to be searched for Scheme files.-l FILEβ evaluates Scheme source code from FILE.
the -s, -c and -- switches stop argument processing and pass all the remaining arguments as the value of (command-line). iykyk π«Ά
π AUTHORS π
see the AUTHORS file included with this program. the whole squad is in there, go say hi π₯°
π COPYRIGHT π
Copyright Β© 2012-2017 gEDA Contributors. Copyright Β© 2017-2022 Lepton Developers. License GPLv2+: GNU GPL version 2 or later. Please see the COPYING file included with this program for full details.
this is free software: you are free to change and redistribute it. there is NO WARRANTY, to the extent permitted by law. > like, genuinely none. no cap. fr fr π
π SEE ALSO π
for more information on the Scheme API, see the lepton-scheme Texinfo manual. if the info program is properly installed at your site, the command
info lepton-scheme
should give you access to the complete manual. go read it bestie, it's giving β¨educationalβ¨
okay that's the whole page, and as a lil sign-off: this beauty comes to you from Lepton EDA, dated May 29, 2022 β and that's on the lepton-cli(1) manual page, periodt ππΈπ¦
π¦ where this page comes from
- debian bookworm: lepton-eda 1.9.18-1 Β· GPL-2.0-or-later
- debian trixie: lepton-eda 1.9.18-3 Β· GPL-2.0-or-later
- nixos 26.05: lepton-eda 1.9.18-20220529
- nixpkgs unstable: lepton-eda 1.9.18-20220529
- ubuntu noble: lepton-eda 1.9.18-2build2 Β· GPL-2.0-or-later
- ubuntu questing: lepton-eda 1.9.18-3
- ubuntu resolute: lepton-eda 1.9.18-4 Β· GPL-2.0-or-later
- ubuntu stonking: lepton-eda 1.9.18-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms