This is a CLI tool written in Bash to interact with the Synapse Admin API.
The installation of this tool is pretty straigthforward. Just clone this repository and run the installation script.
git clone https://github.com/oblak-be/synapse-admin-api-cli.git
cd synapse-admin-api-cli/
./install.sh
Instructions to figure out your access token with Element (the flagship Matrix client).
-
Log in with and admin account
-
Open Settings > Help & About
-
Below Advanced you can view/copy the Access Token.
Create a file named /etc/synapse-admin/cli.conf
and add:
SYNAPSE_HOMESERVER="matrix.homeserver.example"
SYNAPSE_ADMIN_USER="@admin:homeserver.example"
SYNAPSE_ACCESS_TOKEN="<admin access token>"
Run synapse-admin
to view the inline help