Skip to main content


Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
#!/usr/bin/env -S deno run
import { Command } from "../../command/command.ts";import { CompletionsCommand } from "../../command/completions/mod.ts";import { HelpCommand } from "../../command/help/mod.ts";
await new Command() .name("cliffy") .version("1.0.0") .description(`Command line framework for Deno`) .option("-p, --beep", "Some option.", { default: true, }) .option("--no-beep", "Negate beep.") .option("-f, --foo [value:string]", "Some string value.", { default: "foo", }) .option("-b, --bar [value:number]", "Some numeric value.", { default: 89, depends: ["foo"], }) .option("-B, --baz <value:boolean>", "Some boolean value.", { conflicts: ["beep"], }) .command("help", new HelpCommand().global()) .command("completions", new CompletionsCommand()) .parse(Deno.args);