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 with goose migrations.
The following files are created:
~/.config/clonit/config.yaml– Configuration file with a generated secret key for AES-GCM encryption of sensitive fields.~/.config/clonit/clonit.db– SQLite database with schema migrations applied via goose.
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