#discord #cli

app disma-cli

Discord server management has never been easier!

21 releases

0.9.5 Jan 20, 2024
0.9.1 Sep 12, 2023
0.8.5 Jul 27, 2023
0.8.4 Jan 24, 2023
0.6.5 Nov 22, 2022

#108 in Configuration

Download history 48/week @ 2023-10-27 4/week @ 2023-11-03 1/week @ 2023-11-10 30/week @ 2023-11-17 61/week @ 2023-11-24 77/week @ 2023-12-01 26/week @ 2023-12-15 51/week @ 2023-12-22 17/week @ 2024-01-05 31/week @ 2024-01-12 94/week @ 2024-01-19 49/week @ 2024-01-26 61/week @ 2024-02-02 65/week @ 2024-02-09

271 downloads per month

Custom license

295KB
8K SLoC

Disma - CLI

Crates.io codecov

Command line interface for disma.

⬇️ Installation

You can install the disma binary multiple ways.

With cargo

cargo install disma-cli

With curl

UNIX (Linux, MacOS)

curl -sL "https://github.com/vigenere23/disma/releases/download/disma-cli%2Fv<DISMA_CLI_VERSION>/disma-<ARCH>.tar.gz" | tar -xz

where <ARCH> is one of:

  • aarch64-apple-darwin
  • x86_64-apple-darwin
  • x86_64-unknown-linux-gnu

🚀 Commands

⚠️ All commands needs the evironment variable DISCORD_BOT_TOKEN to be set.

list

List bot's accessible servers. If you don't see access to your server, make sure to add your bot to it.

compile

Compile a template config to a full config file. Only the handlebars format is supported for now. Will compile to the original format (JSON or YAML).

Arguments

  • --template, -t <TEMPLATE_FILE> : File to use as a template (contains handlebars tokens).
  • --vars, -v <VARS_FILE> : File containing variables that populates the template. can be either YAML or JSON.
  • --output, -o <OUTPUT_FILE> : Compiled config output file.
  • --force, -f : Bypass the user confirmation step.

save

Save a server (guild) configuration.

Arguments:

  • --guild, -g <GUILD_ID> : Id of the guild to save. To find your guild id, use list.
  • --output, -o <OUTPUT_FILE> : Output file path. Both .json and .yaml/.yml files are supported.
  • --force, -f : Bypass the user confirmation step.

apply

Apply changes to a server based on a configuration file.

Arguments

  • --guild, -g <GUILD_ID> : Id of the guild to save. To find your guild id, use list.
  • --input, -i <INPUT_FILE> : Configuration file to use. Both .json and .yaml/.yml files are supported. Make sure to follow the configuration file format.
  • --force, -f : Bypass the user confirmation step.

Dependencies

~9–22MB
~352K SLoC