2022-11-25 18:23:41 +00:00
|
|
|
# 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
|
|
|
|
```
|
|
|
|
|
2023-03-02 17:24:32 +00:00
|
|
|
Generate invite code (note is optional):
|
2022-11-25 18:23:41 +00:00
|
|
|
|
|
|
|
```shell
|
2023-03-02 17:24:32 +00:00
|
|
|
mitractl generate-invite-code <note>
|
2022-11-25 18:23:41 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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>
|
|
|
|
```
|
|
|
|
|
2022-11-25 18:23:41 +00:00
|
|
|
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
|
2023-01-21 21:25:51 +00:00
|
|
|
mitractl delete-emoji emoji_name example.org
|
2023-01-16 22:52:22 +00:00
|
|
|
```
|
|
|
|
|
2022-11-25 18:23:41 +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
|
2023-01-21 21:25:51 +00:00
|
|
|
mitractl import-emoji emoji_name example.org
|
2023-01-17 00:09:09 +00:00
|
|
|
```
|
|
|
|
|
2022-11-25 18:23:41 +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
|
|
|
|
```
|