Skip to content

Initialize system database

This command will wipe existing and initializes the system database with fresh defaults.

DANGER

All existing data in the system database will be erased -> Use with caution.

Following data will be populated:

  • ACL roles and permissions
  • Initial admin user
  • System configuration settings
  • Other essential system data
sh
pnpm cli init:db:system

TIP

Command requires food database and system database to be already imported. You can use CLI command to download and restore the system database snapshot.