CLI Usage

ACTIVE
PACKAGE: @mbsi/mkcmd
COMMAND: init

Quick Start

bunx @mbsi/mkcmd init
> ? Project name: my-cli
> ? Target directory: ./my-cli
> ? Description: A new CLI tool
> ✓ Project scaffolded successfully!

Prompts Reference

PromptTypeDescription
Project nametextName for the new CLI (used in package.json)
Target directorytextWhere to scaffold (default: ./{project-name})
DescriptiontextShort description for package.json and README

Global flags: -h, --help shows help, -v, --version prints version.

Output Files

PROJECT STRUCTURE
my-cli/
├── src/
│   ├── config.ts
│   ├── core/
│   │   ├── cli.ts
│   │   ├── log.ts
│   │   └── helpers/
│   │       ├── file-builder.ts
│   │       ├── stringifier.ts
│   │       └── file-utils.ts
│   └── commands/
│       └── index.ts
├── package.json
├── tsconfig.json
└── README.md

Create src/index.ts as your entry point, then run with bun run src/index.ts <command>