fedimovies/docs/mitractl.md
2023-01-26 00:00:17 +00:00

1.6 KiB

mitractl: a tool for instance administrators

Commands must be run as the same user as the web service:

su mitra -c "mitractl generate-invite-code"

Print help:

mitractl --help

Generate RSA private key:

mitractl generate-rsa-key

Generate invite code:

mitractl generate-invite-code

List generated invites:

mitractl list-invite-codes

Set or change password:

mitractl set-password <user-id> <password>

Change user's role:

mitractl set-role <user-id> <role-name>

Delete profile:

mitractl delete-profile 55a3005f-f293-4168-ab70-6ab09a879679

Delete post:

mitractl delete-post 55a3005f-f293-4168-ab70-6ab09a879679

Delete custom emoji:

mitractl delete-emoji emoji_name example.org

Remove remote posts and media older than 30 days:

mitractl delete-extraneous-posts 30

Delete attachments that don't belong to any post:

mitractl delete-unused-attachments 5

Delete empty remote profiles:

mitractl delete-empty-profiles 100

Import custom emoji from another instance:

mitractl import-emoji emoji_name example.org

Generate ethereum address:

mitractl generate-ethereum-address

Update synchronization starting block of Ethereum blockchain:

mitractl update-current-block 2000000

Create Monero wallet:

mitractl create-monero-wallet "mitra-wallet" "passw0rd"

Check expired invoice:

mitractl check-expired-invoice 0184b062-d8d5-cbf1-a71b-6d1aafbae2ab