Skip to content

Creating admin user from the command line #5085

Closed Answered by jarednorman
papebarka asked this question in Troubleshooting
Discussion options

You must be logged in to vote

Yep!

Spree::User.create!(email: "admin@example.com", password: "yourpassword", spree_roles: Spree::Role.where(name: "admin"))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benjaminwil
Comment options

Answer selected by jarednorman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants