Configuration
KiLM stores its main configuration file, config.yaml
, in a standard user configuration directory:
- Linux/macOS:
~/.config/kicad-lib-manager/config.yaml
(following XDG Base Directory specification) - Windows: Typically
C:\Users\<YourUsername>\.config\kicad-lib-manager\config.yaml
(derived fromPath.home()
)
Main Configuration File (config.yaml
)
The primary configuration file, config.yaml
, is located within the configuration directory mentioned above. This file stores information about:
- Registered Libraries (
libraries
): A list containing details about the libraries managed by KiLM. Each library entry includes:name
: A unique identifier for the library.path
: The absolute path to the library’s directory.type
: Specifies the kind of library. Common types include:github
: Typically used for standard symbol and footprint libraries, often managed via Git.cloud
: Used for 3D model libraries.
- Current Library (
current_library
): The path to the library currently considered “active” by KiLM. This path is used by commands likestatus
and others. It can be set using thekilm config set-default
command. - Maximum Backups (
max_backups
): An integer defining the maximum number of timestamped backups KiLM should keep when modifying KiCad’s native configuration files.
This file is automatically managed by KiLM when you use commands like init
, add-3d
, config set-default
, etc. Manual editing is usually not required but possible if needed.
Example structure:
current_library: /path/to/your/main-kicad-librarylibraries:- name: my-company-kicad-library path: /path/to/your/main-kicad-library type: github- name: shared-3d-models path: /path/to/shared/3d-models type: cloud- name: my-company-another-library path: /path/to/your/other-kicad-library type: githubmax_backups: 5
KiCad Configuration Files
KiLM interacts directly with KiCad’s own configuration files to add libraries, set environment variables, and manage pinned libraries. KiLM automatically detects the location of these files (usually within KiCad’s user settings directory).