3 {! backend/administration/CLI_tasks/general_cli_task_info.include !}
10 ./bin/pleroma_ctl user new <nickname> <email> [option ...]
16 mix pleroma.user new <nickname> <email> [option ...]
21 - `--name <name>` - the user's display name
22 - `--bio <bio>` - the user's bio
23 - `--password <password>` - the user's password
24 - `--moderator`/`--no-moderator` - whether the user should be a moderator
25 - `--admin`/`--no-admin` - whether the user should be an admin
26 - `-y`, `--assume-yes`/`--no-assume-yes` - whether to assume yes to all questions
33 ./bin/pleroma_ctl user list
43 ## Generate an invite link
48 ./bin/pleroma_ctl user invite [option ...]
54 mix pleroma.user invite [option ...]
59 - `--expires-at DATE` - last day on which token is active (e.g. "2019-04-05")
60 - `--max-use NUMBER` - maximum numbers of token uses
62 ## List generated invites
67 ./bin/pleroma_ctl user invites
73 mix pleroma.user invites
82 ./bin/pleroma_ctl user revoke_invite <token>
88 mix pleroma.user revoke_invite <token>
97 ./bin/pleroma_ctl user rm <nickname>
103 mix pleroma.user rm <nickname>
107 ## Delete user's posts and interactions
112 ./bin/pleroma_ctl user delete_activities <nickname>
118 mix pleroma.user delete_activities <nickname>
122 ## Sign user out from all applications (delete user's OAuth tokens and authorizations)
127 ./bin/pleroma_ctl user sign_out <nickname>
133 mix pleroma.user sign_out <nickname>
141 ./bin/pleroma_ctl user activate NICKNAME
147 mix pleroma.user activate NICKNAME
150 ## Deactivate a user and unsubscribes local users from the user
155 ./bin/pleroma_ctl user deactivate NICKNAME
161 mix pleroma.user deactivate NICKNAME
165 ## Deactivate all accounts from an instance and unsubscribe local users on it
170 ./bin/pleroma_ctl user deactivate_all_from_instance <instance>
176 mix pleroma.user deactivate_all_from_instance <instance>
180 ## Create a password reset link for user
185 ./bin/pleroma_ctl user reset_password <nickname>
191 mix pleroma.user reset_password <nickname>
195 ## Disable Multi Factor Authentication (MFA/2FA) for a user
200 ./bin/pleroma_ctl user reset_mfa <nickname>
206 mix pleroma.user reset_mfa <nickname>
210 ## Set the value of the given user's settings
215 ./bin/pleroma_ctl user set <nickname> [option ...]
221 mix pleroma.user set <nickname> [option ...]
225 - `--admin`/`--no-admin` - whether the user should be an admin
226 - `--confirmed`/`--no-confirmed` - whether the user account is confirmed
227 - `--locked`/`--no-locked` - whether the user should be locked
228 - `--moderator`/`--no-moderator` - whether the user should be a moderator
230 ## Add tags to a user
235 ./bin/pleroma_ctl user tag <nickname> <tags>
241 mix pleroma.user tag <nickname> <tags>
245 ## Delete tags from a user
250 ./bin/pleroma_ctl user untag <nickname> <tags>
256 mix pleroma.user untag <nickname> <tags>
260 ## Toggle confirmation status of the user
265 ./bin/pleroma_ctl user confirm <nickname>
271 mix pleroma.user confirm <nickname>
274 ## Set confirmation status for all regular active users
275 *Admins and moderators are excluded*
280 ./bin/pleroma_ctl user confirm_all
286 mix pleroma.user confirm_all
289 ## Revoke confirmation status for all regular active users
290 *Admins and moderators are excluded*
295 ./bin/pleroma_ctl user unconfirm_all
301 mix pleroma.user unconfirm_all