2019-10-03 07:15:24 +00:00
|
|
|
# Managing users
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
{! backend/administration/CLI_tasks/general_cli_task_info.include !}
|
2019-10-03 07:15:24 +00:00
|
|
|
|
|
|
|
## Create a user
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
```sh tab="OTP"
|
2020-03-11 07:46:57 +00:00
|
|
|
./bin/pleroma_ctl user new <nickname> <email> [option ...]
|
2019-12-09 01:07:16 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```sh tab="From Source"
|
2020-03-11 07:46:57 +00:00
|
|
|
mix pleroma.user new <nickname> <email> [option ...]
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
### Options
|
|
|
|
- `--name <name>` - the user's display name
|
|
|
|
- `--bio <bio>` - the user's bio
|
|
|
|
- `--password <password>` - the user's password
|
|
|
|
- `--moderator`/`--no-moderator` - whether the user should be a moderator
|
|
|
|
- `--admin`/`--no-admin` - whether the user should be an admin
|
|
|
|
- `-y`, `--assume-yes`/`--no-assume-yes` - whether to assume yes to all questions
|
|
|
|
|
2019-11-17 20:58:30 +00:00
|
|
|
## List local users
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user list
|
2019-11-17 20:58:30 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user list
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Generate an invite link
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
2020-03-11 07:46:57 +00:00
|
|
|
./bin/pleroma_ctl user invite [option ...]
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
2020-03-11 07:46:57 +00:00
|
|
|
mix pleroma.user invite [option ...]
|
2019-12-09 01:07:16 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
### Options
|
|
|
|
- `--expires-at DATE` - last day on which token is active (e.g. "2019-04-05")
|
|
|
|
- `--max-use NUMBER` - maximum numbers of token uses
|
|
|
|
|
|
|
|
## List generated invites
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user invites
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user invites
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Revoke invite
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user revoke_invite <token_or_id>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user revoke_invite <token_or_id>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Delete a user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user rm <nickname>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user rm <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Delete user's posts and interactions
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user delete_activities <nickname>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user delete_activities <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Sign user out from all applications (delete user's OAuth tokens and authorizations)
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user sign_out <nickname>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user sign_out <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-05-21 05:06:57 +00:00
|
|
|
## Deactivate or activate a user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
2020-05-21 05:06:57 +00:00
|
|
|
./bin/pleroma_ctl user toggle_activated <nickname>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
2020-05-21 05:06:57 +00:00
|
|
|
mix pleroma.user toggle_activated <nickname>
|
2019-12-09 01:07:16 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-05-21 05:06:57 +00:00
|
|
|
## Deactivate a user and unsubscribes local users from the user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
2020-05-21 05:06:57 +00:00
|
|
|
./bin/pleroma_ctl user deactivate NICKNAME
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
2020-05-21 05:06:57 +00:00
|
|
|
mix pleroma.user deactivate NICKNAME
|
2019-12-09 01:07:16 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-05-21 05:06:57 +00:00
|
|
|
## Deactivate all accounts from an instance and unsubscribe local users on it
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
2020-05-21 10:27:06 +00:00
|
|
|
./bin/pleroma_ctl user deactivate_all_from_instance <instance>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
2020-05-21 05:06:57 +00:00
|
|
|
mix pleroma.user deactivate_all_from_instance <instance>
|
2019-12-09 01:07:16 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Create a password reset link for user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user reset_password <nickname>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user reset_password <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Set the value of the given user's settings
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
2020-03-11 07:46:57 +00:00
|
|
|
./bin/pleroma_ctl user set <nickname> [option ...]
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
```sh tab="From Source"
|
2020-03-11 07:46:57 +00:00
|
|
|
mix pleroma.user set <nickname> [option ...]
|
2019-12-09 01:07:16 +00:00
|
|
|
```
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
### Options
|
|
|
|
- `--locked`/`--no-locked` - whether the user should be locked
|
|
|
|
- `--moderator`/`--no-moderator` - whether the user should be a moderator
|
|
|
|
- `--admin`/`--no-admin` - whether the user should be an admin
|
|
|
|
|
|
|
|
## Add tags to a user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user tag <nickname> <tags>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user tag <nickname> <tags>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Delete tags from a user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user untag <nickname> <tags>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
|
|
|
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user untag <nickname> <tags>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 07:15:24 +00:00
|
|
|
## Toggle confirmation status of the user
|
2019-12-09 01:07:16 +00:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user toggle_confirmed <nickname>
|
2019-10-03 07:15:24 +00:00
|
|
|
```
|
2019-12-09 01:07:16 +00:00
|
|
|
|
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user toggle_confirmed <nickname>
|
|
|
|
```
|