config init
Initialize the Clonit configuration file and SQLite database.
clonit config initDescription
Section titled “Description”Creates the configuration directory, generates a config file with a new secret key for encryption, and initializes the SQLite metadata database.
The following files are created:
<config-dir>/config.yaml– Configuration file with a generated secret key for AES-GCM encryption of sensitive fields.<config-dir>/clonit.db– SQLite metadata database with schema migrations applied automatically.
<config-dir> is the OS-specific
config directory — run
clonit config path to see yours.
If a config file already exists at the target path, the command will not overwrite it.
Examples
Section titled “Examples”Initialize a new configuration:
clonit config initInitialize with a custom config path:
clonit --config /path/to/config.yaml config initSee Also
Section titled “See Also”- version – Print version information