Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/packages/command/lib/command.ts>Command

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class Command
extends DefaultCommand<O, A>
import { Command } from "https://deno.land/x/cliffy@v0.8.2/packages/command/lib/command.ts";

A command with pre configured command's and option's:

  • command's: help Output's autogenerated help. completions Output's autogenerated shell completion script for bash and zsh.
  • option's: -h, --help Output's autogenerated help. -V, --version Output's version number

Constructors

new
Command()

Type Parameters

optional
O = any
optional
A extends Array<any> = any

Methods

command(
nameAndArguments: string,
cmd?: BaseCommand | string,
override?: boolean,
): this