What is the best way to bootstrap role permission config on new server

Hey @Le_Trieu,

You can use the config-sync plugin that I wrote.

After you install it in your local Strapi instance you can export the permissions (and other config) to JSON files. Then you can add the files to git and import them on any other env.

Importing & exporting can be done through the CLI or Strapi admin GUI.

To bootstrap the admin user you can use this snippet in the bootstrap function of your Strapi project.

1 Like