Connect to and reset Kindo's databases
Connect to and check the databases
Section titled “Connect to and check the databases”The Kindo CLI connects you to Kindo’s databases through the cluster. Opening an interactive session and resetting a database need the PostgreSQL command-line client on your workstation.
| To | Run |
|---|---|
| List the databases | kindo db list |
Open a tunnel on localhost:15432 (Ctrl+C closes it) | kindo db tunnel main |
Open an interactive psql session | kindo db prompt litellm |
| Check that the databases were created | kindo db bootstrap-status |
| Create missing databases and roles, and reset the password of any service whose login the database refuses | kindo doctor --fix |
| Delete everything in a database | kindo db reset <database> |
Reset a database
Section titled “Reset a database”Reset a database only when you mean to discard its data. You can recover it only from your own backup.
Before you reset Flagsmith’s database, remove any flag provider overrides you set.
kindo db reset hatchetAnswer yes only if the question names your cluster and the database you mean to reset.
In a script or CI job, where nothing can answer, the command stops before changing anything unless you add the apply option:
kindo db reset hatchet --applyIf the reset stops because another command is running, see How every command behaves.
The service whose database you reset doesn’t work until you apply the config, which rebuilds the database. Flagsmith rebuilds its own when the reset restarts it.
Resetting Flagsmith’s or Hatchet’s database also forgets the keys that service issued, and restarts it. Resetting Flagsmith’s also moves Kindo’s applications back to Unleash until you copy your flags again. Hatchet is unavailable while its database is emptied. If Hatchet doesn’t start again, run the command the reset prints.
If the reset was to continue installing, restoring or upgrading after it stopped, run that command again instead of applying the config.
Otherwise, apply the config:
kindo config applyThe plan can list routine repairs. Answer no if it changes another service’s data, or config settings you didn’t change.
After a reset of Kindo’s database, the instance has no superadmin. Once the apply finishes, create one again. The health check names how.
After a reset of Kindo’s database or the LiteLLM database, register your models again. The reset removes them.
For what a reset refuses, and what to do if one stops partway, see Reset refusals.
