1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 16:33:28 +00:00
mobilizon/docs/administration/CLI tasks/manage_users.md
Thomas Citharel 9e3df495dc
Move configuration to traditional way
️ This is the way.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-02-06 16:12:13 +01:00

1.2 KiB

Manage users

!!! tip "Environment" You need to run these commands with the appropriate environment loaded, so probably prefix with MIX_ENV=prod.

List all available commands

mix mobilizon.users

Create a new user

mix mobilizon.users.new <email> [<options>]

Options

  • --password <password>/ -p <password> - the user's password. If this option is missing, a password will be generated randomly.
  • --moderator - make the user a moderator
  • --admin - make the user an admin

Show an user's details

Displays if the user has confirmed their email, if they're a moderator or an admin and their profiles.

mix mobilizon.users.show <email>

Modify an user

mix mobilizon.users.modify <email>

Options

  • --email <email> - the user's new email
  • --password <password> - the user's new password.
  • --user - make the user a regular user
  • --moderator - make the user a moderator
  • --admin - make the user an admin
  • --enable - enable the user
  • --disable - disable the user

Delete an user

mix mobilizon.users.delete <email>

Options

  • --assume_yes/-y Don't ask for confirmation