CreateAdminScript

scripts. CreateAdminScript

Script to create an admin user.

The $ADMIN_EMAIL and $ADMIN_PASSWORD environment variables must be set.

You may use this script to create an admin user when first deploying the application in production.

$> ADMIN_EMAIL=admin@example.com ADMIN_PASSWORD=test npm run create-admin