Discovering Config Files
Harlequin loads config files from the following locations. If it finds multiple files, it merges them, with items listed first taking priority:
- The file located at the path provided by the
--config-path
CLI option (see below). - Files named
harlequin.toml
,.harlequin.toml
, orpyproject.toml
in the current working directory. - Files named
harlequin.toml
,.harlequin.toml
, orconfig.toml
in the user’s default config directory, in theharlequin
subdirectory. For example:- Linux:
$XDG_CONFIG_HOME/harlequin/config.toml
or~/.config/harlequin/config.toml
- Mac:
~/Library/Application Support/harlequin/config.toml
- Windows:
~\AppData\Local\harlequin\config.toml
- Linux:
- Files named
harlequin.toml
,.harlequin.toml
, orpyproject.toml
in the user’s home directory (~
).
Custom Config Path
You can specify a custom path to a config file by invoking Harlequin with the --config-path
option:
$Â harlequin --config-path /path/to/my/file.toml