Interface CreateCommandOptions

The interface to create a command

interface CreateCommandOptions {
    alias?: string;
    command: string;
    description?: string;
    options?: CommandOption[];
}

Properties

alias?: string

The alias of the command

command: string

The command with arguments

eg: "mycommand "

commander .command() method for more details

description?: string

The description of the command

options?: CommandOption[]

A list of command options