fedimovies/docs/mitractl.md
2023-04-24 16:26:31 +02:00

1.8 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 (note is optional):

mitractl generate-invite-code <note>

List generated invites:

mitractl list-invite-codes

Create user:

mitractl create-user <username> <password> <role-name>

Set or change password:

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

Change user's role (admin, user or read_only_user).

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

Delete unused remote emojis:

mitractl prune-remote-emojis

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