Skip to content

Admin user

sh
rails g trek:admin:user
# or (soon)
trek admin:user

Creates an admin user with the credentials defined by the ADMIN_EMAIL and ADMIN_PASSWORD ENV variables, typically set in .env:

sh
# .env
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=a-strong-password

The created user gets the admin role, which makes it privileged? and grants it full access in the default policies.

Released under the MIT License.