CLI Usage
ACTIVEPACKAGE: @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
| Prompt | Type | Description |
|---|---|---|
| Project name | text | Name for the new CLI (used in package.json) |
| Target directory | text | Where to scaffold (default: ./{project-name}) |
| Description | text | Short 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>