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