Skip to content

Latest commit

 

History

History
 
 

swiftyadmin

SwiftyAdmin 🚀

An example command line utility to interact with and control a server using TootSDK.

Available commands

To view the current list of commands, build the project and run the program using the -h option:

swift build && ./.build/debug/swiftyadmin -h

Domain blocks

These commands require the admin:read:domain_blocks or admin:write:domain_blocks authorization scope. For more information, check out the docs.

list-domain-blocks

USAGE: swiftyadmin list-domain-blocks -u <u> -t <t>

OPTIONS:
  -u <u>                  URL to the instance to connect to
  -t <t>                  Access token for an account with sufficient permissions.

block-domain

USAGE: swiftyadmin block-domain -u <u> -t <t> -d <d>

OPTIONS:
  -u <u>                  URL to the instance to connect to
  -t <t>                  Access token for an account with sufficient permissions.
  -d <d>                  The domain to be blocked

unblock-domain

USAGE: swiftyadmin unblock-domain -u <u> -t <t> -d <d>

OPTIONS:
  -u <u>                  URL to the instance to connect to
  -t <t>                  Access token for an account with sufficient permissions.
  -d <d>                  The domain to be unblocked

Local development

To test it out, you could run:

swift build && ./.build/debug/swiftyadmin list-domain-blocks -u "..." -t "..."