Skip to content

Creates a strapi admin user on startup. Simplifies working with multiple strapi environments.

License

Notifications You must be signed in to change notification settings

itsemast/strapi-plugin-init-admin-user

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strapi-plugin-init-admin-user

Creates a strapi admin user on startup. Simplifies working with multiple strapi environments.

Init Admin Example Variables


Installation

Add strapi-plugin-init-admin-user to your strapi (v4!).

# npm:
npm install strapi-plugin-init-admin-user
# yarn:
yarn add strapi-plugin-init-admin-user

Create these environment variables with your initial values.

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

If you decide to also use this plugin outside of development-mode you also need to add the following environment variable.

INIT_ADMIN=true

Usage

After installing the plugin and creating your environment variables start your strapi (locally: npm run develop) and watch out for the info-log:

Created admin (E-Mail: admin@init-strapi-admin.strapi.io, Password: [INIT_ADMIN_PASSWORD]).

Note: By default the plugin will only create an initial admin-user if there is no existing user in your strapi application!

Success Notification after Admin Creation on Startup

Init Admin Result in Strapi


Support

Leave a 'Thank You' with a ⭐️ on Github and have a nice day!


Links

Plugin on Github
Plugin on NPM
Plugin on Strapi Marketplace


License

MIT License - Created by minzig🍃

About

Creates a strapi admin user on startup. Simplifies working with multiple strapi environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%