fedimovies/docs/mitractl.md

112 lines
1.6 KiB
Markdown
Raw Normal View History

# mitractl: a tool for instance administrators
Commands must be run as the same user as the web service:
```shell
su mitra -c "mitractl generate-invite-code"
```
---
Print help:
```shell
mitractl --help
```
Generate RSA private key:
```shell
mitractl generate-rsa-key
```
Generate invite code (note is optional):
```shell
mitractl generate-invite-code <note>
```
List generated invites:
```shell
mitractl list-invite-codes
```
Set or change password:
```shell
mitractl set-password <user-id> <password>
```
2023-01-25 05:52:58 +00:00
Change user's role:
```shell
mitractl set-role <user-id> <role-name>
```
Delete profile:
```shell
mitractl delete-profile 55a3005f-f293-4168-ab70-6ab09a879679
```
Delete post:
```shell
mitractl delete-post 55a3005f-f293-4168-ab70-6ab09a879679
```
2023-01-16 22:52:22 +00:00
Delete custom emoji:
```shell
mitractl delete-emoji emoji_name example.org
2023-01-16 22:52:22 +00:00
```
Remove remote posts and media older than 30 days:
```shell
mitractl delete-extraneous-posts 30
```
Delete attachments that don't belong to any post:
```shell
mitractl delete-unused-attachments 5
```
Delete empty remote profiles:
```shell
mitractl delete-empty-profiles 100
```
2023-01-17 00:09:09 +00:00
Import custom emoji from another instance:
```shell
mitractl import-emoji emoji_name example.org
2023-01-17 00:09:09 +00:00
```
Generate ethereum address:
```shell
mitractl generate-ethereum-address
```
Update synchronization starting block of Ethereum blockchain:
```shell
mitractl update-current-block 2000000
```
Create Monero wallet:
```shell
mitractl create-monero-wallet "mitra-wallet" "passw0rd"
```
2022-11-25 19:11:50 +00:00
Check expired invoice:
```shell
mitractl check-expired-invoice 0184b062-d8d5-cbf1-a71b-6d1aafbae2ab
```