Skip to content

CompostInTraining/CiT.CLI

Repository files navigation

.NET .NET Release codecov GitHub release (latest SemVer including pre-releases)

CiT.CLI

A CLI for administering the CompostInTraining.club Mastodon instance.

Usage

cit <command> <subcommand> [parameters]

Available Commands

domain-blocks

cit domain-blocks <command> [<Arg>...]

domain-blocks commands:

  • show - list all domain blocks
  • query <domain> - query the blocklist for a given domain
  • add <domain> [<severity> <comment>] - add a domain to the blocklist, optionally specifying the severity and providing a comment.
    • <severity> should be one of suspend, silence, or noop per the Mastodon docs
  • remove <domain> - remove a domain from the blocklist

email-domain-blocks

cit email-domain-blocks <command> [<Arg>...]

email-domain-blocks commands:

  • show - list all email domain blocks
  • query <domain> - query the blocklist for a given domain
  • add <domain> - add an email domain to the blocklist
  • remove <domain> - remove an email domain from the blocklist

ip-blocks

cit ip-blocks <command> [<Arg>...]

ip-blocks commands:

  • show - list all ip rules
  • query <address> - query the ruleset for a given address
  • add <address> <severity> - add an ip address to the ruleset
    • <severity> should be one of sign_up_requires_approval, sign_up_block, or no_access per the Mastodon docs
  • remove <address> - remove an ip address from the ruleset