2019-10-03 09:15:24 +02:00
|
|
|
# Managing users
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
{! backend/administration/CLI_tasks/general_cli_task_info.include !}
|
2019-10-03 09:15:24 +02:00
|
|
|
|
|
|
|
## Create a user
|
2019-12-09 02:07:16 +01:00
|
|
|
|
|
|
|
```sh tab="OTP"
|
2020-03-11 21:26:50 +01:00
|
|
|
./bin/pleroma_ctl user new <nickname> <email> [option ...]
|
2019-12-09 02:07:16 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
```sh tab="From Source"
|
2020-03-11 21:26:50 +01:00
|
|
|
mix pleroma.user new <nickname> <email> [option ...]
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
|
2019-10-03 09:15:24 +02: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 21:58:30 +01:00
|
|
|
## List local users
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user list
|
2019-11-17 21:58:30 +01:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user list
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Generate an invite link
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
2020-03-11 21:26:50 +01:00
|
|
|
./bin/pleroma_ctl user invite [option ...]
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
2020-03-11 21:26:50 +01:00
|
|
|
mix pleroma.user invite [option ...]
|
2019-12-09 02:07:16 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02: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 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user invites
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user invites
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Revoke invite
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user revoke_invite <token_or_id>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user revoke_invite <token_or_id>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Delete a user
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user rm <nickname>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user rm <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Delete user's posts and interactions
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user delete_activities <nickname>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user delete_activities <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Sign user out from all applications (delete user's OAuth tokens and authorizations)
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user sign_out <nickname>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user sign_out <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Deactivate or activate a user
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user toggle_activated <nickname>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user toggle_activated <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Unsubscribe local users from a user and deactivate the user
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user unsubscribe NICKNAME
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user unsubscribe NICKNAME
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Unsubscribe local users from an instance and deactivate all accounts on it
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user unsubscribe_all_from_instance <instance>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user unsubscribe_all_from_instance <instance>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Create a password reset link for user
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user reset_password <nickname>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user reset_password <nickname>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Set the value of the given user's settings
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
2020-03-11 21:26:50 +01:00
|
|
|
./bin/pleroma_ctl user set <nickname> [option ...]
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
2019-12-09 02:07:16 +01:00
|
|
|
|
|
|
|
```sh tab="From Source"
|
2020-03-11 21:26:50 +01:00
|
|
|
mix pleroma.user set <nickname> [option ...]
|
2019-12-09 02:07:16 +01:00
|
|
|
```
|
|
|
|
|
2019-10-03 09:15:24 +02: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 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user tag <nickname> <tags>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user tag <nickname> <tags>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Delete tags from a user
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user untag <nickname> <tags>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
|
|
|
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user untag <nickname> <tags>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-10-03 09:15:24 +02:00
|
|
|
## Toggle confirmation status of the user
|
2019-12-09 02:07:16 +01:00
|
|
|
```sh tab="OTP"
|
|
|
|
./bin/pleroma_ctl user toggle_confirmed <nickname>
|
2019-10-03 09:15:24 +02:00
|
|
|
```
|
2019-12-09 02:07:16 +01:00
|
|
|
|
|
|
|
```sh tab="From Source"
|
|
|
|
mix pleroma.user toggle_confirmed <nickname>
|
|
|
|
```
|
|
|
|
|