adminThis document contains the help content for the admin command-line program.
Command Overview:
admin↴admin appservices↴admin appservices register↴admin appservices unregister↴admin appservices show-appservice-config↴admin appservices list-registered↴admin users↴admin users create-user↴admin users reset-password↴admin users deactivate↴admin users deactivate-all↴admin users suspend↴admin users unsuspend↴admin users list-users↴admin users list-joined-rooms↴admin users force-join-room↴admin users force-leave-room↴admin users force-leave-remote-room↴admin users force-demote↴admin users make-user-admin↴admin users put-room-tag↴admin users delete-room-tag↴admin users get-room-tags↴admin users redact-event↴admin users force-join-list-of-local-users↴admin users force-join-all-local-users↴admin rooms↴admin rooms list-rooms↴admin rooms info↴admin rooms info list-joined-members↴admin rooms info view-room-topic↴admin rooms moderation↴admin rooms moderation ban-room↴admin rooms moderation ban-list-of-rooms↴admin rooms moderation unban-room↴admin rooms moderation list-banned-rooms↴admin rooms alias↴admin rooms alias set↴admin rooms alias remove↴admin rooms alias which↴admin rooms alias list↴admin rooms directory↴admin rooms directory publish↴admin rooms directory unpublish↴admin rooms directory list↴admin rooms exists↴admin federation↴admin federation incoming-federation↴admin federation disable-room↴admin federation enable-room↴admin federation fetch-support-well-known↴admin federation remote-user-in-rooms↴admin server↴admin server uptime↴admin server show-config↴admin server reload-config↴admin server list-features↴admin server memory-usage↴admin server clear-caches↴admin server backup-database↴admin server list-backups↴admin server admin-notice↴admin server reload-mods↴admin server restart↴admin server shutdown↴admin media↴admin media delete↴admin media delete-list↴admin media delete-past-remote-media↴admin media delete-all-from-user↴admin media delete-all-from-server↴admin media get-file-info↴admin media get-remote-file↴admin media get-remote-thumbnail↴admin check↴admin check check-all-users↴admin debug↴admin debug echo↴admin debug get-auth-chain↴admin debug parse-pdu↴admin debug get-pdu↴admin debug get-short-pdu↴admin debug get-remote-pdu↴admin debug get-remote-pdu-list↴admin debug get-room-state↴admin debug get-signing-keys↴admin debug get-verify-keys↴admin debug ping↴admin debug force-device-list-updates↴admin debug change-log-level↴admin debug sign-json↴admin debug verify-json↴admin debug verify-pdu↴admin debug first-pdu-in-room↴admin debug latest-pdu-in-room↴admin debug force-set-room-state-from-server↴admin debug resolve-true-destination↴admin debug memory-stats↴admin debug runtime-metrics↴admin debug runtime-interval↴admin debug time↴admin debug list-dependencies↴admin debug database-stats↴admin debug trim-memory↴admin debug database-files↴admin query↴admin query account-data↴admin query account-data changes-since↴admin query account-data account-data-get↴admin query appservice↴admin query appservice get-registration↴admin query appservice all↴admin query presence↴admin query presence get-presence↴admin query presence presence-since↴admin query room-alias↴admin query room-alias resolve-local-alias↴admin query room-alias local-aliases-for-room↴admin query room-alias all-local-aliases↴admin query room-state-cache↴admin query room-state-cache server-in-room↴admin query room-state-cache room-servers↴admin query room-state-cache server-rooms↴admin query room-state-cache room-members↴admin query room-state-cache local-users-in-room↴admin query room-state-cache active-local-users-in-room↴admin query room-state-cache room-joined-count↴admin query room-state-cache room-invited-count↴admin query room-state-cache room-user-once-joined↴admin query room-state-cache room-members-invited↴admin query room-state-cache get-invite-count↴admin query room-state-cache get-left-count↴admin query room-state-cache rooms-joined↴admin query room-state-cache rooms-left↴admin query room-state-cache rooms-invited↴admin query room-state-cache invite-state↴admin query room-timeline↴admin query room-timeline pdus↴admin query room-timeline last↴admin query globals↴admin query globals database-version↴admin query globals current-count↴admin query globals last-check-for-announcements-id↴admin query globals signing-keys-for↴admin query sending↴admin query sending active-requests↴admin query sending active-requests-for↴admin query sending queued-requests↴admin query sending get-latest-edu-count↴admin query users↴admin query users count-users↴admin query users iter-users↴admin query users iter-users2↴admin query users password-hash↴admin query users list-devices↴admin query users list-devices-metadata↴admin query users get-device-metadata↴admin query users get-devices-version↴admin query users count-one-time-keys↴admin query users get-device-keys↴admin query users get-user-signing-key↴admin query users get-master-key↴admin query users get-to-device-events↴admin query users get-latest-backup↴admin query users get-latest-backup-version↴admin query users get-backup-algorithm↴admin query users get-all-backups↴admin query users get-room-backups↴admin query users get-backup-session↴admin query users get-shared-rooms↴admin query resolver↴admin query resolver destinations-cache↴admin query resolver overrides-cache↴admin query pusher↴admin query pusher get-pushers↴admin query short↴admin query short short-event-id↴admin query short short-room-id↴admin query raw↴admin query raw raw-maps↴admin query raw raw-get↴admin query raw raw-del↴admin query raw raw-keys↴admin query raw raw-keys-sizes↴admin query raw raw-keys-total↴admin query raw raw-vals-sizes↴admin query raw raw-vals-total↴admin query raw raw-iter↴admin query raw raw-keys-from↴admin query raw raw-iter-from↴admin query raw raw-count↴admin query raw compact↴adminUsage: admin <COMMAND>
appservices — - Commands for managing appservicesusers — - Commands for managing local usersrooms — - Commands for managing roomsfederation — - Commands for managing federationserver — - Commands for managing the servermedia — - Commands for managing mediacheck — - Commands for checking integritydebug — - Commands for debugging thingsquery — - Low-level queries for database getters and iteratorsadmin appservicesUsage: admin appservices <COMMAND>
register — - Register an appservice using its registration YAMLunregister — - Unregister an appservice using its IDshow-appservice-config — - Show an appservice's config using its IDlist-registered — - List all the currently registered appservicesadmin appservices registerThis command needs a YAML generated by an appservice (such as a bridge), which must be provided in a Markdown code block below the command.
Registering a new bridge using the ID of an existing bridge will replace the old one.
Usage: admin appservices register
admin appservices unregisterYou can find the ID using the list-appservices command.
Usage: admin appservices unregister <APPSERVICE_IDENTIFIER>
<APPSERVICE_IDENTIFIER> — The appservice to unregisteradmin appservices show-appservice-configYou can find the ID using the list-appservices command.
Usage: admin appservices show-appservice-config <APPSERVICE_IDENTIFIER>
<APPSERVICE_IDENTIFIER> — The appservice to showadmin appservices list-registeredUsage: admin appservices list-registered
admin usersUsage: admin users <COMMAND>
create-user — - Create a new userreset-password — - Reset user passworddeactivate — - Deactivate a userdeactivate-all — - Deactivate a list of userssuspend — - Suspend a userunsuspend — - Unsuspend a userlist-users — - List local users in the databaselist-joined-rooms — - Lists all the rooms (local and remote) that the specified user is joined inforce-join-room — - Manually join a local user to a roomforce-leave-room — - Manually leave a local user from a roomforce-leave-remote-room — - Manually leave a remote room for a local userforce-demote — - Forces the specified user to drop their power levels to the room default, if their permissions allow and the auth check permitsmake-user-admin — - Grant server-admin privileges to a userput-room-tag — - Puts a room tag for the specified user and room IDdelete-room-tag — - Deletes the room tag for the specified user and room IDget-room-tags — - Gets all the room tags for the specified user and room IDredact-event — - Attempts to forcefully redact the specified event ID from the sender userforce-join-list-of-local-users — - Force joins a specified list of local users to join the specified roomforce-join-all-local-users — - Force joins all local users to the specified roomadmin users create-userUsage: admin users create-user <USERNAME> [PASSWORD]
<USERNAME> — Username of the new user<PASSWORD> — Password of the new user, if unspecified one is generatedadmin users reset-passwordUsage: admin users reset-password <USERNAME> [PASSWORD]
<USERNAME> — Username of the user for whom the password should be reset<PASSWORD> — New password for the user, if unspecified one is generatedadmin users deactivateUser will be removed from all rooms by default. Use --no-leave-rooms to not leave all rooms by default.
Usage: admin users deactivate [OPTIONS] <USER_ID>
<USER_ID>-n, --no-leave-roomsadmin users deactivate-allRecommended to use in conjunction with list-local-users.
Users will be removed from joined rooms by default.
Can be overridden with --no-leave-rooms.
Removing a mass amount of users from a room may cause a significant amount of leave events. The time to leave rooms may depend significantly on joined rooms and servers.
This command needs a newline separated list of users provided in a Markdown code block below the command.
Usage: admin users deactivate-all [OPTIONS]
-n, --no-leave-rooms — Does not leave any rooms the user is in on deactivation-f, --force — Also deactivate admin accounts and will assume leave all rooms tooadmin users suspendSuspended users are able to log in, sync, and read messages, but are not able to send events nor redact them, cannot change their profile, and are unable to join, invite to, or knock on rooms.
Suspended users can still leave rooms and deactivate their account. Suspending them effectively makes them read-only.
Usage: admin users suspend <USER_ID>
<USER_ID> — Username of the user to suspendadmin users unsuspendReverses the effects of the suspend command, allowing the user to send messages, change their profile, create room invites, etc.
Usage: admin users unsuspend <USER_ID>
<USER_ID> — Username of the user to unsuspendadmin users list-usersUsage: admin users list-users
admin users list-joined-roomsUsage: admin users list-joined-rooms <USER_ID>
<USER_ID>admin users force-join-roomUsage: admin users force-join-room <USER_ID> <ROOM_ID>
<USER_ID><ROOM_ID>admin users force-leave-roomUsage: admin users force-leave-room <USER_ID> <ROOM_ID>
<USER_ID><ROOM_ID>admin users force-leave-remote-roomUsage: admin users force-leave-remote-room <USER_ID> <ROOM_ID>
<USER_ID><ROOM_ID>admin users force-demoteUsage: admin users force-demote <USER_ID> <ROOM_ID>
<USER_ID><ROOM_ID>admin users make-user-adminUsage: admin users make-user-admin <USER_ID>
<USER_ID>admin users put-room-tagThis is primarily useful if you'd like to set your admin room to the special "System Alerts" section in Element as a way to permanently see your admin room without it being buried away in your favourites or rooms. To do this, you would pass your user, your admin room's internal ID, and the tag name m.server_notice.
Usage: admin users put-room-tag <USER_ID> <ROOM_ID> <TAG>
<USER_ID><ROOM_ID><TAG>admin users delete-room-tagUsage: admin users delete-room-tag <USER_ID> <ROOM_ID> <TAG>
<USER_ID><ROOM_ID><TAG>admin users get-room-tagsUsage: admin users get-room-tags <USER_ID> <ROOM_ID>
<USER_ID><ROOM_ID>admin users redact-eventThis is only valid for local users
Usage: admin users redact-event <EVENT_ID>
<EVENT_ID>admin users force-join-list-of-local-usersSpecify a codeblock of usernames.
At least 1 server admin must be in the room to reduce abuse.
Requires the --yes-i-want-to-do-this flag.
Usage: admin users force-join-list-of-local-users [OPTIONS] <ROOM_ID>
<ROOM_ID>--yes-i-want-to-do-thisadmin users force-join-all-local-usersAt least 1 server admin must be in the room to reduce abuse.
Requires the --yes-i-want-to-do-this flag.
Usage: admin users force-join-all-local-users [OPTIONS] <ROOM_ID>
<ROOM_ID>--yes-i-want-to-do-thisadmin roomsUsage: admin rooms <COMMAND>
list-rooms — - List all rooms the server knows aboutinfo — - View information about a room we know aboutmoderation — - Manage moderation of remote or local roomsalias — - Manage rooms' aliasesdirectory — - Manage the room directoryexists — - Check if we know about a roomadmin rooms list-roomsUsage: admin rooms list-rooms [OPTIONS] [PAGE]
<PAGE>--exclude-disabled — Excludes rooms that we have federation disabled with--exclude-banned — Excludes rooms that we have banned--no-details — Whether to only output room IDs without supplementary room informationadmin rooms infoUsage: admin rooms info <COMMAND>
list-joined-members — - List joined members in a roomview-room-topic — - Displays room topicadmin rooms info list-joined-membersUsage: admin rooms info list-joined-members [OPTIONS] <ROOM_ID>
<ROOM_ID>--local-only — Lists only our local users in the specified roomadmin rooms info view-room-topicRoom topics can be huge, so this is in its own separate command
Usage: admin rooms info view-room-topic <ROOM_ID>
<ROOM_ID>admin rooms moderationUsage: admin rooms moderation <COMMAND>
ban-room — - Bans a room from local users joining and evicts all our local users (including server admins) from the room. Also blocks any invites (local and remote) for the banned room, and disables federation entirely with itban-list-of-rooms — - Bans a list of rooms (room IDs and room aliases) from a newline delimited codeblock similar to user deactivate-all. Applies the same steps as ban-roomunban-room — - Unbans a room to allow local users to join againlist-banned-rooms — - List of all rooms we have bannedadmin rooms moderation ban-roomUsage: admin rooms moderation ban-room <ROOM>
<ROOM> — The room in the format of !roomid:example.com or a room alias in the format of #roomalias:example.comadmin rooms moderation ban-list-of-roomsuser deactivate-all. Applies the same steps as ban-roomUsage: admin rooms moderation ban-list-of-rooms
admin rooms moderation unban-roomUsage: admin rooms moderation unban-room <ROOM>
<ROOM> — The room in the format of !roomid:example.com or a room alias in the format of #roomalias:example.comadmin rooms moderation list-banned-roomsUsage: admin rooms moderation list-banned-rooms [OPTIONS]
--no-details — Whether to only output room IDs without supplementary room informationadmin rooms aliasUsage: admin rooms alias <COMMAND>
set — - Make an alias point to a roomremove — - Remove a local aliaswhich — - Show which room is using an aliaslist — - List aliases currently being usedadmin rooms alias setUsage: admin rooms alias set [OPTIONS] <ROOM_ID> <ROOM_ALIAS_LOCALPART>
<ROOM_ID> — The room id to set the alias on<ROOM_ALIAS_LOCALPART> — The alias localpart to use (alias, not #alias:servername.tld)-f, --force — Set the alias even if a room is already using itadmin rooms alias removeUsage: admin rooms alias remove <ROOM_ALIAS_LOCALPART>
<ROOM_ALIAS_LOCALPART> — The alias localpart to remove (alias, not #alias:servername.tld)admin rooms alias whichUsage: admin rooms alias which <ROOM_ALIAS_LOCALPART>
<ROOM_ALIAS_LOCALPART> — The alias localpart to look up (alias, not #alias:servername.tld)admin rooms alias listUsage: admin rooms alias list [ROOM_ID]
<ROOM_ID> — If set, only list the aliases for this roomadmin rooms directoryUsage: admin rooms directory <COMMAND>
publish — - Publish a room to the room directoryunpublish — - Unpublish a room to the room directorylist — - List rooms that are publishedadmin rooms directory publishUsage: admin rooms directory publish <ROOM_ID>
<ROOM_ID> — The room id of the room to publishadmin rooms directory unpublishUsage: admin rooms directory unpublish <ROOM_ID>
<ROOM_ID> — The room id of the room to unpublishadmin rooms directory listUsage: admin rooms directory list [PAGE]
<PAGE>admin rooms existsUsage: admin rooms exists <ROOM_ID>
<ROOM_ID>admin federationUsage: admin federation <COMMAND>
incoming-federation — - List all rooms we are currently handling an incoming pdu fromdisable-room — - Disables incoming federation handling for a roomenable-room — - Enables incoming federation handling for a room againfetch-support-well-known — - Fetch /.well-known/matrix/support from the specified serverremote-user-in-rooms — - Lists all the rooms we share/track with the specified remote useradmin federation incoming-federationUsage: admin federation incoming-federation
admin federation disable-roomUsage: admin federation disable-room <ROOM_ID>
<ROOM_ID>admin federation enable-roomUsage: admin federation enable-room <ROOM_ID>
<ROOM_ID>admin federation fetch-support-well-known/.well-known/matrix/support from the specified serverDespite the name, this is not a federation endpoint and does not go through the federation / server resolution process as per-spec this is supposed to be served at the server_name.
Respecting homeservers put this file here for listing administration, moderation, and security inquiries. This command provides a way to easily fetch that information.
Usage: admin federation fetch-support-well-known <SERVER_NAME>
<SERVER_NAME>admin federation remote-user-in-roomsUsage: admin federation remote-user-in-rooms <USER_ID>
<USER_ID>admin serverUsage: admin server <COMMAND>
uptime — - Time elapsed since startupshow-config — - Show configuration valuesreload-config — - Reload configuration valueslist-features — - List the features built into the servermemory-usage — - Print database memory usage statisticsclear-caches — - Clears all of Continuwuity's cachesbackup-database — - Performs an online backup of the database (only available for RocksDB at the moment)list-backups — - List database backupsadmin-notice — - Send a message to the admin roomreload-mods — - Hot-reload the serverrestart — - Restart the servershutdown — - Shutdown the serveradmin server uptimeUsage: admin server uptime
admin server show-configUsage: admin server show-config
admin server reload-configUsage: admin server reload-config [PATH]
<PATH>admin server list-featuresUsage: admin server list-features [OPTIONS]
-a, --available-e, --enabled-c, --commaadmin server memory-usageUsage: admin server memory-usage
admin server clear-cachesUsage: admin server clear-caches
admin server backup-databaseUsage: admin server backup-database
admin server list-backupsUsage: admin server list-backups
admin server admin-noticeUsage: admin server admin-notice [MESSAGE]...
<MESSAGE>admin server reload-modsUsage: admin server reload-mods
admin server restartUsage: admin server restart [OPTIONS]
-f, --forceadmin server shutdownUsage: admin server shutdown
admin mediaUsage: admin media <COMMAND>
delete — - Deletes a single media file from our database and on the filesystem via a single MXC URL or event ID (not redacted)delete-list — - Deletes a codeblock list of MXC URLs from our database and on the filesystem. This will always ignore errorsdelete-past-remote-media — Deletes all remote (and optionally local) media created before/after
[duration] ago, using filesystem metadata first created at date, or
fallback to last modified date. This will always ignore errors by
default.delete-all-from-user — - Deletes all the local media from a local user on our server. This will always ignore errors by defaultdelete-all-from-server — - Deletes all remote media from the specified remote server. This will always ignore errors by defaultget-file-info —get-remote-file —get-remote-thumbnail —admin media deleteUsage: admin media delete [OPTIONS]
--mxc <MXC> — The MXC URL to delete--event-id <EVENT_ID> — - The message event ID which contains the media and thumbnail MXC URLsadmin media delete-listUsage: admin media delete-list
admin media delete-past-remote-mediaDeletes all remote (and optionally local) media created before/after [duration] ago, using filesystem metadata first created at date, or fallback to last modified date. This will always ignore errors by default.
Delete all remote media older than a year:
!admin media delete-past-remote-media -b 1y
Delete all remote and local media from 3 days ago, up until now:
!admin media delete-past-remote-media -a 3d --yes-i-want-to-delete-local-media
Usage: admin media delete-past-remote-media [OPTIONS] <DURATION>
<DURATION> — - The relative time (e.g. 30s, 5m, 7d) from now within which to search-b, --before — - Only delete media created before [duration] ago-a, --after — - Only delete media created after [duration] ago--yes-i-want-to-delete-local-media — - Long argument to additionally delete local mediaadmin media delete-all-from-userUsage: admin media delete-all-from-user <USERNAME>
<USERNAME>admin media delete-all-from-serverUsage: admin media delete-all-from-server [OPTIONS] <SERVER_NAME>
<SERVER_NAME>--yes-i-want-to-delete-local-media — Long argument to delete local mediaadmin media get-file-infoUsage: admin media get-file-info <MXC>
<MXC> — The MXC URL to lookup info foradmin media get-remote-fileUsage: admin media get-remote-file [OPTIONS] <MXC>
<MXC> — The MXC URL to fetch-s, --server <SERVER>
-t, --timeout <TIMEOUT>
Default value: 10000
admin media get-remote-thumbnailUsage: admin media get-remote-thumbnail [OPTIONS] <MXC>
<MXC> — The MXC URL to fetch-s, --server <SERVER>
-t, --timeout <TIMEOUT>
Default value: 10000
--width <WIDTH>
Default value: 800
--height <HEIGHT>
Default value: 800
admin checkUsage: admin check <COMMAND>
check-all-users —admin check check-all-usersUsage: admin check check-all-users
admin debugUsage: admin debug <COMMAND>
echo — - Echo input of admin commandget-auth-chain — - Get the auth_chain of a PDUparse-pdu — - Parse and print a PDU from a JSONget-pdu — - Retrieve and print a PDU by EventID from the Continuwuity databaseget-short-pdu — - Retrieve and print a PDU by PduId from the Continuwuity databaseget-remote-pdu — - Attempts to retrieve a PDU from a remote server. Inserts it into our database/timeline if found and we do not have this PDU already (following normal event auth rules, handles it as an incoming PDU)get-remote-pdu-list — - Same as get-remote-pdu but accepts a codeblock newline delimited list of PDUs and a single server to fetch fromget-room-state — - Gets all the room state events for the specified roomget-signing-keys — - Get and display signing keys from local cache or remote serverget-verify-keys — - Get and display signing keys from local cache or remote serverping — - Sends a federation request to the remote server's /_matrix/federation/v1/version endpoint and measures the latency it took for the server to respondforce-device-list-updates — - Forces device lists for all local and remote users to be updated (as having new keys available)change-log-level — - Change tracing log level/filter on the flysign-json — - Sign JSON blobverify-json — - Verify JSON signaturesverify-pdu — - Verify PDUfirst-pdu-in-room — - Prints the very first PDU in the specified room (typically m.room.create)latest-pdu-in-room — - Prints the latest ("last") PDU in the specified room (typically a message)force-set-room-state-from-server — - Forcefully replaces the room state of our local copy of the specified room, with the copy (auth chain and room state events) the specified remote server saysresolve-true-destination — - Runs a server name through Continuwuity's true destination resolution processmemory-stats — - Print extended memory usageruntime-metrics — - Print general tokio runtime metric totalsruntime-interval — - Print detailed tokio runtime metrics accumulated since last command invocationtime — - Print the current timelist-dependencies — - List dependenciesdatabase-stats — - Get database statisticstrim-memory — - Trim memory usagedatabase-files — - List database filesadmin debug echoUsage: admin debug echo [MESSAGE]...
<MESSAGE>admin debug get-auth-chainUsage: admin debug get-auth-chain <EVENT_ID>
<EVENT_ID> — An event ID (the $ character followed by the base64 reference hash)admin debug parse-pduThe PDU event is only checked for validity and is not added to the database.
This command needs a JSON blob provided in a Markdown code block below the command.
Usage: admin debug parse-pdu
admin debug get-pduUsage: admin debug get-pdu <EVENT_ID>
<EVENT_ID> — An event ID (a $ followed by the base64 reference hash)admin debug get-short-pduUsage: admin debug get-short-pdu <SHORTROOMID> <SHORTEVENTID>
<SHORTROOMID> — Shortroomid integer<SHORTEVENTID> — Shorteventid integeradmin debug get-remote-pduUsage: admin debug get-remote-pdu <EVENT_ID> <SERVER>
<EVENT_ID> — An event ID (a $ followed by the base64 reference hash)<SERVER> — Argument for us to attempt to fetch the event from the specified remote serveradmin debug get-remote-pdu-listget-remote-pdu but accepts a codeblock newline delimited list of PDUs and a single server to fetch fromUsage: admin debug get-remote-pdu-list [OPTIONS] <SERVER>
<SERVER> — Argument for us to attempt to fetch all the events from the specified remote server-f, --force — If set, ignores errors, else stops at the first error/failureadmin debug get-room-stateThis is functionally equivalent to GET /_matrix/client/v3/rooms/{roomid}/state, except the admin command does not check if the sender user is allowed to see state events. This is done because it's implied that server admins here have database access and can see/get room info themselves anyways if they were malicious admins.
Of course the check is still done on the actual client API.
Usage: admin debug get-room-state <ROOM_ID>
<ROOM_ID> — Room IDadmin debug get-signing-keysUsage: admin debug get-signing-keys [OPTIONS] [SERVER_NAME]
<SERVER_NAME>--notary <NOTARY>-q, --queryadmin debug get-verify-keysUsage: admin debug get-verify-keys [SERVER_NAME]
<SERVER_NAME>admin debug ping/_matrix/federation/v1/version endpoint and measures the latency it took for the server to respondUsage: admin debug ping <SERVER>
<SERVER>admin debug force-device-list-updatesUsage: admin debug force-device-list-updates
admin debug change-log-levelThis accepts the same format as the log config option.
Usage: admin debug change-log-level [OPTIONS] [FILTER]
<FILTER> — Log level/filter-r, --reset — Resets the log level/filter to the one in your configadmin debug sign-jsonThis command needs a JSON blob provided in a Markdown code block below the command.
Usage: admin debug sign-json
admin debug verify-jsonThis command needs a JSON blob provided in a Markdown code block below the command.
Usage: admin debug verify-json
admin debug verify-pduThis re-verifies a PDU existing in the database found by ID.
Usage: admin debug verify-pdu <EVENT_ID>
<EVENT_ID>admin debug first-pdu-in-roomUsage: admin debug first-pdu-in-room <ROOM_ID>
<ROOM_ID> — The room IDadmin debug latest-pdu-in-roomUsage: admin debug latest-pdu-in-room <ROOM_ID>
<ROOM_ID> — The room IDadmin debug force-set-room-state-from-serverA common desire for room deletion is to simply "reset" our copy of the room. While this admin command is not a replacement for that, if you know you have split/broken room state and you know another server in the room that has the best/working room state, this command can let you use their room state. Such example is your server saying users are in a room, but other servers are saying they're not in the room in question.
This command will get the latest PDU in the room we know about, and request the room state at that point in time via /_matrix/federation/v1/state/{roomId}.
Usage: admin debug force-set-room-state-from-server <ROOM_ID> <SERVER_NAME> [EVENT_ID]
<ROOM_ID> — The impacted room ID<SERVER_NAME> — The server we will use to query the room state for<EVENT_ID> — The event ID of the latest known PDU in the room. Will be found automatically if not providedadmin debug resolve-true-destinationUseful for debugging well-known issues
Usage: admin debug resolve-true-destination [OPTIONS] <SERVER_NAME>
<SERVER_NAME>-n, --no-cacheadmin debug memory-statsOptional argument is a character mask (a sequence of characters in any order) which enable additional extended statistics. Known characters are "abdeglmx". For convenience, a '*' will enable everything.
Usage: admin debug memory-stats [OPTS]
<OPTS>admin debug runtime-metricsUsage: admin debug runtime-metrics
admin debug runtime-intervalUsage: admin debug runtime-interval
admin debug timeUsage: admin debug time
admin debug list-dependenciesUsage: admin debug list-dependencies [OPTIONS]
-n, --namesadmin debug database-statsUsage: admin debug database-stats [OPTIONS] [PROPERTY]
<PROPERTY>-m, --map <MAP>admin debug trim-memoryUsage: admin debug trim-memory
admin debug database-filesUsage: admin debug database-files [OPTIONS] [MAP]
<MAP>--level <LEVEL>admin queryUsage: admin query <COMMAND>
account-data — - account_data.rs iterators and gettersappservice — - appservice.rs iterators and getterspresence — - presence.rs iterators and gettersroom-alias — - rooms/alias.rs iterators and gettersroom-state-cache — - rooms/state_cache iterators and gettersroom-timeline — - rooms/timeline iterators and gettersglobals — - globals.rs iterators and getterssending — - sending.rs iterators and gettersusers — - users.rs iterators and gettersresolver — - resolver servicepusher — - pusher serviceshort — - short serviceraw — - raw serviceadmin query account-dataUsage: admin query account-data <COMMAND>
changes-since — - Returns all changes to the account data that happened after sinceaccount-data-get — - Searches the account data for a specific kindadmin query account-data changes-sincesinceUsage: admin query account-data changes-since <USER_ID> <SINCE> [ROOM_ID]
<USER_ID> — Full user ID<SINCE> — UNIX timestamp since (u64)<ROOM_ID> — Optional room ID of the account dataadmin query account-data account-data-getUsage: admin query account-data account-data-get <USER_ID> <KIND> [ROOM_ID]
<USER_ID> — Full user ID<KIND> — Account data event type<ROOM_ID> — Optional room ID of the account dataadmin query appserviceUsage: admin query appservice <COMMAND>
get-registration — - Gets the appservice registration info/details from the ID as a stringall — - Gets all appservice registrations with their ID and registration infoadmin query appservice get-registrationUsage: admin query appservice get-registration <APPSERVICE_ID>
<APPSERVICE_ID> — Appservice registration IDadmin query appservice allUsage: admin query appservice all
admin query presenceUsage: admin query presence <COMMAND>
get-presence — - Returns the latest presence event for the given userpresence-since — - Iterator of the most recent presence updates that happened after the event with id sinceadmin query presence get-presenceUsage: admin query presence get-presence <USER_ID>
<USER_ID> — Full user IDadmin query presence presence-sincesinceUsage: admin query presence presence-since <SINCE>
<SINCE> — UNIX timestamp since (u64)admin query room-aliasUsage: admin query room-alias <COMMAND>
resolve-local-alias —local-aliases-for-room — - Iterator of all our local room aliases for the room IDall-local-aliases — - Iterator of all our local aliases in our database with their room IDsadmin query room-alias resolve-local-aliasUsage: admin query room-alias resolve-local-alias <ALIAS>
<ALIAS> — Full room aliasadmin query room-alias local-aliases-for-roomUsage: admin query room-alias local-aliases-for-room <ROOM_ID>
<ROOM_ID> — Full room IDadmin query room-alias all-local-aliasesUsage: admin query room-alias all-local-aliases
admin query room-state-cacheUsage: admin query room-state-cache <COMMAND>
server-in-room —room-servers —server-rooms —room-members —local-users-in-room —active-local-users-in-room —room-joined-count —room-invited-count —room-user-once-joined —room-members-invited —get-invite-count —get-left-count —rooms-joined —rooms-left —rooms-invited —invite-state —admin query room-state-cache server-in-roomUsage: admin query room-state-cache server-in-room <SERVER> <ROOM_ID>
<SERVER><ROOM_ID>admin query room-state-cache room-serversUsage: admin query room-state-cache room-servers <ROOM_ID>
<ROOM_ID>admin query room-state-cache server-roomsUsage: admin query room-state-cache server-rooms <SERVER>
<SERVER>admin query room-state-cache room-membersUsage: admin query room-state-cache room-members <ROOM_ID>
<ROOM_ID>admin query room-state-cache local-users-in-roomUsage: admin query room-state-cache local-users-in-room <ROOM_ID>
<ROOM_ID>admin query room-state-cache active-local-users-in-roomUsage: admin query room-state-cache active-local-users-in-room <ROOM_ID>
<ROOM_ID>admin query room-state-cache room-joined-countUsage: admin query room-state-cache room-joined-count <ROOM_ID>
<ROOM_ID>admin query room-state-cache room-invited-countUsage: admin query room-state-cache room-invited-count <ROOM_ID>
<ROOM_ID>admin query room-state-cache room-user-once-joinedUsage: admin query room-state-cache room-user-once-joined <ROOM_ID>
<ROOM_ID>admin query room-state-cache room-members-invitedUsage: admin query room-state-cache room-members-invited <ROOM_ID>
<ROOM_ID>admin query room-state-cache get-invite-countUsage: admin query room-state-cache get-invite-count <ROOM_ID> <USER_ID>
<ROOM_ID><USER_ID>admin query room-state-cache get-left-countUsage: admin query room-state-cache get-left-count <ROOM_ID> <USER_ID>
<ROOM_ID><USER_ID>admin query room-state-cache rooms-joinedUsage: admin query room-state-cache rooms-joined <USER_ID>
<USER_ID>admin query room-state-cache rooms-leftUsage: admin query room-state-cache rooms-left <USER_ID>
<USER_ID>admin query room-state-cache rooms-invitedUsage: admin query room-state-cache rooms-invited <USER_ID>
<USER_ID>admin query room-state-cache invite-stateUsage: admin query room-state-cache invite-state <USER_ID> <ROOM_ID>
<USER_ID><ROOM_ID>admin query room-timelineUsage: admin query room-timeline <COMMAND>
pdus —last —admin query room-timeline pdusUsage: admin query room-timeline pdus [OPTIONS] <ROOM_ID> [FROM]
<ROOM_ID><FROM>-l, --limit <LIMIT>admin query room-timeline lastUsage: admin query room-timeline last <ROOM_ID>
<ROOM_ID>admin query globalsUsage: admin query globals <COMMAND>
database-version —current-count —last-check-for-announcements-id —signing-keys-for — - This returns an empty Ok(BTreeMap<..>) when there are no keys found for the serveradmin query globals database-versionUsage: admin query globals database-version
admin query globals current-countUsage: admin query globals current-count
admin query globals last-check-for-announcements-idUsage: admin query globals last-check-for-announcements-id
admin query globals signing-keys-forOk(BTreeMap<..>) when there are no keys found for the serverUsage: admin query globals signing-keys-for <ORIGIN>
<ORIGIN>admin query sendingUsage: admin query sending <COMMAND>
active-requests — - Queries database for all servercurrentevent_dataactive-requests-for — - Queries database for servercurrentevent_data but for a specific destinationqueued-requests — - Queries database for servernameevent_data which are the queued up requests that will eventually be sentget-latest-edu-count —admin query sending active-requestsservercurrentevent_dataUsage: admin query sending active-requests
admin query sending active-requests-forservercurrentevent_data but for a specific destinationThis command takes only one format of these arguments:
appservice_id server_name user_id AND push_key
See src/service/sending/mod.rs for the definition of the Destination enum
Usage: admin query sending active-requests-for [OPTIONS]
-a, --appservice-id <APPSERVICE_ID>-s, --server-name <SERVER_NAME>-u, --user-id <USER_ID>-p, --push-key <PUSH_KEY>admin query sending queued-requestsservernameevent_data which are the queued up requests that will eventually be sentThis command takes only one format of these arguments:
appservice_id server_name user_id AND push_key
See src/service/sending/mod.rs for the definition of the Destination enum
Usage: admin query sending queued-requests [OPTIONS]
-a, --appservice-id <APPSERVICE_ID>-s, --server-name <SERVER_NAME>-u, --user-id <USER_ID>-p, --push-key <PUSH_KEY>admin query sending get-latest-edu-countUsage: admin query sending get-latest-edu-count <SERVER_NAME>
<SERVER_NAME>admin query usersUsage: admin query users <COMMAND>
count-users —iter-users —iter-users2 —password-hash —list-devices —list-devices-metadata —get-device-metadata —get-devices-version —count-one-time-keys —get-device-keys —get-user-signing-key —get-master-key —get-to-device-events —get-latest-backup —get-latest-backup-version —get-backup-algorithm —get-all-backups —get-room-backups —get-backup-session —get-shared-rooms —admin query users count-usersUsage: admin query users count-users
admin query users iter-usersUsage: admin query users iter-users
admin query users iter-users2Usage: admin query users iter-users2
admin query users password-hashUsage: admin query users password-hash <USER_ID>
<USER_ID>admin query users list-devicesUsage: admin query users list-devices <USER_ID>
<USER_ID>admin query users list-devices-metadataUsage: admin query users list-devices-metadata <USER_ID>
<USER_ID>admin query users get-device-metadataUsage: admin query users get-device-metadata <USER_ID> <DEVICE_ID>
<USER_ID><DEVICE_ID>admin query users get-devices-versionUsage: admin query users get-devices-version <USER_ID>
<USER_ID>admin query users count-one-time-keysUsage: admin query users count-one-time-keys <USER_ID> <DEVICE_ID>
<USER_ID><DEVICE_ID>admin query users get-device-keysUsage: admin query users get-device-keys <USER_ID> <DEVICE_ID>
<USER_ID><DEVICE_ID>admin query users get-user-signing-keyUsage: admin query users get-user-signing-key <USER_ID>
<USER_ID>admin query users get-master-keyUsage: admin query users get-master-key <USER_ID>
<USER_ID>admin query users get-to-device-eventsUsage: admin query users get-to-device-events <USER_ID> <DEVICE_ID>
<USER_ID><DEVICE_ID>admin query users get-latest-backupUsage: admin query users get-latest-backup <USER_ID>
<USER_ID>admin query users get-latest-backup-versionUsage: admin query users get-latest-backup-version <USER_ID>
<USER_ID>admin query users get-backup-algorithmUsage: admin query users get-backup-algorithm <USER_ID> <VERSION>
<USER_ID><VERSION>admin query users get-all-backupsUsage: admin query users get-all-backups <USER_ID> <VERSION>
<USER_ID><VERSION>admin query users get-room-backupsUsage: admin query users get-room-backups <USER_ID> <VERSION> <ROOM_ID>
<USER_ID><VERSION><ROOM_ID>admin query users get-backup-sessionUsage: admin query users get-backup-session <USER_ID> <VERSION> <ROOM_ID> <SESSION_ID>
<USER_ID><VERSION><ROOM_ID><SESSION_ID>admin query users get-shared-roomsUsage: admin query users get-shared-rooms <USER_A> <USER_B>
<USER_A><USER_B>admin query resolverUsage: admin query resolver <COMMAND>
destinations-cache — Query the destinations cacheoverrides-cache — Query the overrides cacheadmin query resolver destinations-cacheQuery the destinations cache
Usage: admin query resolver destinations-cache [SERVER_NAME]
<SERVER_NAME>admin query resolver overrides-cacheQuery the overrides cache
Usage: admin query resolver overrides-cache [NAME]
<NAME>admin query pusherUsage: admin query pusher <COMMAND>
get-pushers — - Returns all the pushers for the useradmin query pusher get-pushersUsage: admin query pusher get-pushers <USER_ID>
<USER_ID> — Full user IDadmin query shortUsage: admin query short <COMMAND>
short-event-id —short-room-id —admin query short short-event-idUsage: admin query short short-event-id <EVENT_ID>
<EVENT_ID>admin query short short-room-idUsage: admin query short short-room-id <ROOM_ID>
<ROOM_ID>admin query rawUsage: admin query raw <COMMAND>
raw-maps — - List database mapsraw-get — - Raw database queryraw-del — - Raw database delete (for string keys)raw-keys — - Raw database keys iterationraw-keys-sizes — - Raw database key size breakdownraw-keys-total — - Raw database keys total bytesraw-vals-sizes — - Raw database values size breakdownraw-vals-total — - Raw database values total bytesraw-iter — - Raw database items iterationraw-keys-from — - Raw database keys iterationraw-iter-from — - Raw database items iterationraw-count — - Raw database record countcompact — - Compact databaseadmin query raw raw-mapsUsage: admin query raw raw-maps
admin query raw raw-getUsage: admin query raw raw-get <MAP> <KEY>
<MAP> — Map name<KEY> — Keyadmin query raw raw-delUsage: admin query raw raw-del <MAP> <KEY>
<MAP> — Map name<KEY> — Keyadmin query raw raw-keysUsage: admin query raw raw-keys <MAP> [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw raw-keys-sizesUsage: admin query raw raw-keys-sizes [MAP] [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw raw-keys-totalUsage: admin query raw raw-keys-total [MAP] [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw raw-vals-sizesUsage: admin query raw raw-vals-sizes [MAP] [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw raw-vals-totalUsage: admin query raw raw-vals-total [MAP] [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw raw-iterUsage: admin query raw raw-iter <MAP> [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw raw-keys-fromUsage: admin query raw raw-keys-from [OPTIONS] <MAP> <START>
<MAP> — Map name<START> — Lower-bound-l, --limit <LIMIT> — Limitadmin query raw raw-iter-fromUsage: admin query raw raw-iter-from [OPTIONS] <MAP> <START>
<MAP> — Map name<START> — Lower-bound-l, --limit <LIMIT> — Limitadmin query raw raw-countUsage: admin query raw raw-count [MAP] [PREFIX]
<MAP> — Map name<PREFIX> — Key prefixadmin query raw compactUsage: admin query raw compact [OPTIONS]
-m, --map <MAP>
--start <START>
--stop <STOP>
--from <FROM>
--into <INTO>
--parallelism <PARALLELISM> — There is one compaction job per column; then this controls how many columns are compacted in parallel. If zero, one compaction job is still run at a time here, but in exclusive-mode blocking any other automatic compaction jobs until complete
--exhaustive
Default value: false