list
The kilm list
command scans a specified directory (typically your main KiCad library directory) and lists the symbol (.kicad_sym
) and footprint (.pretty
) libraries it finds within it.
This is useful for verifying the contents of a specific library directory, independent of KiLM’s own configuration.
Usage
kilm list [OPTIONS]
Options
-
--kicad-lib-dir TEXT
: Specify the path to the KiCad library directory you want to scan. If not provided, KiLM will look for theKICAD_USER_LIB
environment variable and use its value. Default: UsesKICAD_USER_LIB
environment variable. Example:kilm list --kicad-lib-dir /path/to/my/libraries
-
--help
: Show this help message and exit.
Behavior
- Determines Target Directory: Uses the path provided via
--kicad-lib-dir
or falls back to theKICAD_USER_LIB
environment variable. - Scans Directory: Recursively scans the target directory.
- Identifies Libraries:
- Looks for files ending in
.kicad_sym
to identify symbol libraries. - Looks for directories ending in
.pretty
to identify footprint libraries.
- Looks for files ending in
- Prints Lists: Outputs separate lists of the symbol and footprint library names found.
Examples
List Libraries in Default Directory:
Scans the directory specified by the KICAD_USER_LIB
environment variable.
kilm list
Expected Output (example):
Available Symbol Libraries: - 74xx - Connector - Device
Available Footprint Libraries: - Capacitor_SMD - Connector_PinHeader_2.54mm - Resistor_SMD
List Libraries in a Specific Directory:
Scans the specified directory /home/user/my-kicad-libs
.
kilm list --kicad-lib-dir /home/user/my-kicad-libs