1.5 KiB
1.5 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>
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 55a3005f-f293-4168-ab70-6ab09a879679
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 emojiname 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