Creating admin user from the command line #5085
-
Hi, How is it possible to create a Solidus admin user from the command line? Regards |
Beta Was this translation helpful? Give feedback.
Answered by
jarednorman
May 24, 2023
Replies: 1 comment 1 reply
-
Yep! Spree::User.create!(email: "[email protected]", password: "yourpassword", spree_roles: Spree::Role.where(name: "admin")) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jarednorman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep!