Prism Create CLI (create-prism-cli) is the starter behind the Prism CLIs. Answer four questions (or pass flags) and you get a working, tested, zero-dependency Node.js command-line tool: argument parsing with node:util parseArgs, colours that respect NO_COLOR, proper exit codes, node:test tests that already pass, a README, an MIT license and a GitHub Actions matrix. Pick basic for a single command with flags or commands for git-style subcommands.
- Two templates:
basic(flags, positional args, JSON output) andcommands(add / list subcommands with per-command help) - Zero dependencies in the generated project β only Node built-ins
- Tests included with
node:test, passing out of the box (--testverifies) - CI matrix: Ubuntu, Windows, macOS Γ Node 18 / 20 / 22
- README, MIT LICENSE (author from git),
.editorconfig,.gitignore, git init + first commit - Interactive prompts, or fully scripted with
-yand flags
# run without installing
npx github:krishyaa06/prism-create-cli my-cli
# or install globally
npm install -g github:krishyaa06/prism-create-cli
create-prism-cli my-cli -t commandsRequires Node.js 18.17+. No dependencies.
create-prism-cli [dir] [options] asks for anything missing (unless -y)
-n, --name <pkg> package name (default: folder name)
-b, --bin <cmd> command name
-d, --desc <text> one-line description
-t, --template <t> basic | commands
-a, --author <name> author (default: git user.name)
-r, --repo <owner/repo> GitHub repo for package.json + README
--no-git skip git init + first commit
--test run the generated tests
-y, --yes accept defaults, no prompts
-f, --force write into a non-empty folder
my-cli/
βββ .github/workflows/ci.yml
βββ bin/my-cli.js parseArgs, help, exit codes
βββ src/index.js your logic (pure, testable)
βββ src/colors.js NO_COLOR-aware colours
βββ test/my-cli.test.js node:test
βββ README.md LICENSE package.json .editorconfig .gitignore
prism-create-cli/
βββ assets/
β βββ logo.png
β βββ logo.svg
βββ bin/
β βββ create-prism-cli.js # CLI entry
βββ src/
β βββ index.js # scaffold + git init
β βββ templates.js # generated files (basic / commands)
β βββ ui.js # colours, tables
βββ test/
β βββ create.test.js
βββ .gitignore
βββ LICENSE
βββ package.json
npm testTests use the built-in node:test runner, so there is nothing to install. CI runs them on Node 20 and 22.
- Fork the repo and create a branch:
git checkout -b feature/my-idea - Make your change and add a test in
test/ - Run
npm testand open a Pull Request
Prism Create CLI is one of the open-source tools built by Prism Protocol, a tech community where young builders learn, ship and compete together.
![]() Soumya Bhandare Founder @ Prism Protocol |
|
Released under the MIT License.
If you like this project, consider giving it a β
"Build. Create. Compete." Β· Made with β‘ by Prism Protocol


