Skip to content

init

rigger init

Creates the data directory and the database inside it, migrated to the current schema. Running it again is harmless: an existing database is reported and left as it is.

Terminal window
$ rigger init
Created C:\Users\you\AppData\Local\lacodda\rigger\data\rigger.db (schema version 4)
Next: rigger project add <path>
$ rigger init
Already initialised: C:\Users\you\AppData\Local\lacodda\rigger\data\rigger.db

Every other command opens this database and, when it was written by an older rigger, migrates it forward on the spot. A database written by a newer rigger is refused with a message to update.

OS Directory
Windows %LOCALAPPDATA%\lacodda\rigger\data
macOS, Linux the platform’s local data directory for rigger

RIGGER_DATA_DIR overrides the directory for every command; rigger doctor prints the exact path in use.

  • project - record the first repository.
  • doctor - where the database is and what it holds.