jlgarnier
(Jean-Luc GARNIER)
September 26, 2022, 8:44am
1
Dear Community,
I’ve found useful information in an old post Can I add users to Discourse without sending invites? - #2 by Pravi ), but would like to know where I can find information on the other commands I can throw at the app using this Rails console.
For example, I made a mistake with the username and couldn’t find how to list existing users / delete a specific user. Is there any documentation for this (i.e. User.delete(username:"fakeuser"
))? Google wan’t helpful today…
Thanks in advance for any help!
pfaffman
(Jay Pfaffman)
September 26, 2022, 11:29am
2
I think that Administrative Bulk Operations might offer some clues.
User.find_by_username('oops').destroy
jlgarnier
(Jean-Luc GARNIER)
September 27, 2022, 7:50am
3
It works fine, thanks a lot!
Where can I find the full list of commands available from the command line?
Thanks again for your help!
pfaffman
(Jay Pfaffman)
September 27, 2022, 9:11am
4
Tree complete list is the source code. The link I provided gives some more examples.