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>
137 ## Deactivate or activate a user
142 ./bin/pleroma_ctl user toggle_activated <nickname>
148 mix pleroma.user toggle_activated <nickname>
152 ## Deactivate a user and unsubscribes local users from the user
157 ./bin/pleroma_ctl user deactivate NICKNAME
163 mix pleroma.user deactivate NICKNAME
167 ## Deactivate all accounts from an instance and unsubscribe local users on it
172 ./bin/pleroma_ctl user deactivate_all_from_instance <instance>
178 mix pleroma.user deactivate_all_from_instance <instance>
182 ## Create a password reset link for user
187 ./bin/pleroma_ctl user reset_password <nickname>
193 mix pleroma.user reset_password <nickname>
197 ## Disable Multi Factor Authentication (MFA/2FA) for a user
202 ./bin/pleroma_ctl user reset_mfa <nickname>
208 mix pleroma.user reset_mfa <nickname>
212 ## Set the value of the given user's settings
217 ./bin/pleroma_ctl user set <nickname> [option ...]
223 mix pleroma.user set <nickname> [option ...]
227 - `--admin`/`--no-admin` - whether the user should be an admin
228 - `--confirmed`/`--no-confirmed` - whether the user account is confirmed
229 - `--locked`/`--no-locked` - whether the user should be locked
230 - `--moderator`/`--no-moderator` - whether the user should be a moderator
232 ## Add tags to a user
237 ./bin/pleroma_ctl user tag <nickname> <tags>
243 mix pleroma.user tag <nickname> <tags>
247 ## Delete tags from a user
252 ./bin/pleroma_ctl user untag <nickname> <tags>
258 mix pleroma.user untag <nickname> <tags>
262 ## Toggle confirmation status of the user
267 ./bin/pleroma_ctl user toggle_confirmed <nickname>
273 mix pleroma.user toggle_confirmed <nickname>
276 ## Set confirmation status for all regular active users
277 *Admins and moderators are excluded*
282 ./bin/pleroma_ctl user confirm_all
288 mix pleroma.user confirm_all
291 ## Revoke confirmation status for all regular active users
292 *Admins and moderators are excluded*
297 ./bin/pleroma_ctl user unconfirm_all
303 mix pleroma.user unconfirm_all