Plugin: Initialize new strapi environments with default admin user

I’ve created a plugin to easily manage multiple strapi environments (locally or deployed).

strapi-plugin-init-admin-user

Just add to your strapi-project with npm install strapi-plugin-init-admin-user or yarn add strapi-plugin-init-admin-user and add the associated environment variables (to your .env-File locally or your server/cloud-environment).

INIT_ADMIN=true
INIT_ADMIN_USERNAME=admin
INIT_ADMIN_PASSWORD=admin
INIT_ADMIN_FIRSTNAME=Admin
INIT_ADMIN_LASTNAME=Admin
INIT_ADMIN_EMAIL=admin@init-strapi-admin.strapi.io

On strapi startup it will create a strapi-admin user (with strapi-admin-role) and print out (only on creation!) the email.
This makes it much easier to spin up similar strapi-projects or create strapi admin accounts for test, release or production environments.

Feel free to try it out and give me feedback. :slight_smile: