3 {! backend/administration/CLI_tasks/general_cli_task_info.include !}
8 ./bin/pleroma_ctl user new <nickname> <email> [option ...]
11 ```sh tab="From Source"
12 mix pleroma.user new <nickname> <email> [option ...]
17 - `--name <name>` - the user's display name
18 - `--bio <bio>` - the user's bio
19 - `--password <password>` - the user's password
20 - `--moderator`/`--no-moderator` - whether the user should be a moderator
21 - `--admin`/`--no-admin` - whether the user should be an admin
22 - `-y`, `--assume-yes`/`--no-assume-yes` - whether to assume yes to all questions
26 ./bin/pleroma_ctl user list
29 ```sh tab="From Source"
34 ## Generate an invite link
36 ./bin/pleroma_ctl user invite [option ...]
39 ```sh tab="From Source"
40 mix pleroma.user invite [option ...]
45 - `--expires-at DATE` - last day on which token is active (e.g. "2019-04-05")
46 - `--max-use NUMBER` - maximum numbers of token uses
48 ## List generated invites
50 ./bin/pleroma_ctl user invites
53 ```sh tab="From Source"
54 mix pleroma.user invites
60 ./bin/pleroma_ctl user revoke_invite <token_or_id>
63 ```sh tab="From Source"
64 mix pleroma.user revoke_invite <token_or_id>
70 ./bin/pleroma_ctl user rm <nickname>
73 ```sh tab="From Source"
74 mix pleroma.user rm <nickname>
78 ## Delete user's posts and interactions
80 ./bin/pleroma_ctl user delete_activities <nickname>
83 ```sh tab="From Source"
84 mix pleroma.user delete_activities <nickname>
88 ## Sign user out from all applications (delete user's OAuth tokens and authorizations)
90 ./bin/pleroma_ctl user sign_out <nickname>
93 ```sh tab="From Source"
94 mix pleroma.user sign_out <nickname>
98 ## Deactivate or activate a user
100 ./bin/pleroma_ctl user toggle_activated <nickname>
103 ```sh tab="From Source"
104 mix pleroma.user toggle_activated <nickname>
108 ## Deactivate a user and unsubscribes local users from the user
110 ./bin/pleroma_ctl user deactivate NICKNAME
113 ```sh tab="From Source"
114 mix pleroma.user deactivate NICKNAME
118 ## Deactivate all accounts from an instance and unsubscribe local users on it
120 ./bin/pleroma_ctl user deacitivate_all_from_instance <instance>
123 ```sh tab="From Source"
124 mix pleroma.user deactivate_all_from_instance <instance>
128 ## Create a password reset link for user
130 ./bin/pleroma_ctl user reset_password <nickname>
133 ```sh tab="From Source"
134 mix pleroma.user reset_password <nickname>
138 ## Set the value of the given user's settings
140 ./bin/pleroma_ctl user set <nickname> [option ...]
143 ```sh tab="From Source"
144 mix pleroma.user set <nickname> [option ...]
148 - `--locked`/`--no-locked` - whether the user should be locked
149 - `--moderator`/`--no-moderator` - whether the user should be a moderator
150 - `--admin`/`--no-admin` - whether the user should be an admin
152 ## Add tags to a user
154 ./bin/pleroma_ctl user tag <nickname> <tags>
157 ```sh tab="From Source"
158 mix pleroma.user tag <nickname> <tags>
162 ## Delete tags from a user
164 ./bin/pleroma_ctl user untag <nickname> <tags>
167 ```sh tab="From Source"
168 mix pleroma.user untag <nickname> <tags>
172 ## Toggle confirmation status of the user
174 ./bin/pleroma_ctl user toggle_confirmed <nickname>
177 ```sh tab="From Source"
178 mix pleroma.user toggle_confirmed <nickname>