Skip to content

config init

Initialize the Clonit configuration file and SQLite database.

clonit config init

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.

Initialize a new configuration:

clonit config init

Initialize with a custom config path:

clonit --config /path/to/config.yaml config init
  • version – Print version information