# Managing users {! backend/administration/CLI_tasks/general_cli_task_info.include !} ## Create a user ```sh tab="OTP" ./bin/pleroma_ctl user new [] ``` ```sh tab="From Source" mix pleroma.user new [] ``` ### Options - `--name ` - the user's display name - `--bio ` - the user's bio - `--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 ## List local users ```sh tab="OTP" ./bin/pleroma_ctl user list ``` ```sh tab="From Source" mix pleroma.user list ``` ## Generate an invite link ```sh tab="OTP" ./bin/pleroma_ctl user invite [] ``` ```sh tab="From Source" mix pleroma.user invite [] ``` ### 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 ```sh tab="OTP" ./bin/pleroma_ctl user invites ``` ```sh tab="From Source" mix pleroma.user invites ``` ## Revoke invite ```sh tab="OTP" ./bin/pleroma_ctl user revoke_invite ``` ```sh tab="From Source" mix pleroma.user revoke_invite ``` ## Delete a user ```sh tab="OTP" ./bin/pleroma_ctl user rm ``` ```sh tab="From Source" mix pleroma.user rm ``` ## Delete user's posts and interactions ```sh tab="OTP" ./bin/pleroma_ctl user delete_activities ``` ```sh tab="From Source" mix pleroma.user delete_activities ``` ## Sign user out from all applications (delete user's OAuth tokens and authorizations) ```sh tab="OTP" ./bin/pleroma_ctl user sign_out ``` ```sh tab="From Source" mix pleroma.user sign_out ``` ## Deactivate or activate a user ```sh tab="OTP" ./bin/pleroma_ctl user toggle_activated ``` ```sh tab="From Source" mix pleroma.user toggle_activated ``` ## Unsubscribe local users from a user and deactivate the user ```sh tab="OTP" ./bin/pleroma_ctl user unsubscribe NICKNAME ``` ```sh tab="From Source" mix pleroma.user unsubscribe NICKNAME ``` ## Unsubscribe local users from an instance and deactivate all accounts on it ```sh tab="OTP" ./bin/pleroma_ctl user unsubscribe_all_from_instance ``` ```sh tab="From Source" mix pleroma.user unsubscribe_all_from_instance ``` ## Create a password reset link for user ```sh tab="OTP" ./bin/pleroma_ctl user reset_password ``` ```sh tab="From Source" mix pleroma.user reset_password ``` ## Set the value of the given user's settings ```sh tab="OTP" ./bin/pleroma_ctl user set [] ``` ```sh tab="From Source" mix pleroma.user set [] ``` ### 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 ```sh tab="OTP" ./bin/pleroma_ctl user tag ``` ```sh tab="From Source" mix pleroma.user tag ``` ## Delete tags from a user ```sh tab="OTP" ./bin/pleroma_ctl user untag ``` ```sh tab="From Source" mix pleroma.user untag ``` ## Toggle confirmation status of the user ```sh tab="OTP" ./bin/pleroma_ctl user toggle_confirmed ``` ```sh tab="From Source" mix pleroma.user toggle_confirmed ```