1.0.4 • Published 5 years ago

@nickspencer2/chord-cli v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Chord CLI

What is this?

chord-cli is a project I created to make using the chord project easy by providing a command line interface for common tasks.

How do I install it?

To install this tool, from your terminal run

npm install @nickspencer2/chord-cli

Check that installation was successful by running

chord-cli version

You should see something like

chord-cli version: 1.0.0

How do I use it?

Once you've installed chord-cli, you can use its subcommands from your terminal. The available subcommands are:

Commands Table

SubcommandDescription
versionoutputs the installed version of chord-cli
setupgenerates the required configuration for chord
commandcreates the required code for a new chord command

Subcommands

Each subcommand can be used like this from your terminal:

chord-cli <subcommand> <arguments>

Arguments

The arguments for a subcommand can be passed by either long form, e.g. chord-cli setup --outputDirectory myproject or short form, e.g. chord-cli setup -o myproject. If arguments are not provided on the command line, chord-cli will interactively prompt for the desired values.

The flag string for each command (i.e. --outputDirectory and -o for setup) is generated by taking the field name as the long form (i.e. outpuDirectory becomes --outputDirectory) and the first letter of the field name as the short form (i.e. outputDirectory becomes -o). If two fields begin with the same letter, the first field takes precedence. (i.e. for setup, -d refers to the discordToken field, not the defaultVolume field).

Version Subcommand

Description

Outputs the installed version of chord-cli.

Arguments

No arguments required.

Setup Subcommand

Description

Generates the required configuration for chord.

Arguments

NameLong HandShort Hand
discordToken--discordToken-d
youtubeKey--youtubeKey-y
prefix--prefix-p
defaultVolume--defaultVolumeNone
outputDirectory--outputDirectory-o
owner--ownerNone

Command Subcommand

Description

Creates the required code for a new chord command.

Arguments

NameLong HandShort Hand
label--label-l
descriptionString--descriptionString-d
usageString--usageString-u
permissions--permissions-p
outputDirectory--outputDirectory-o
type--type-t
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago