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 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.

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