Use the prebuilt cli
inside an existing web application, or rebrand this boilerplate to create your own CLI with extra automation tools. Rebranding aims to boost automation for web app development and is perfect for DevOps workflows.
cli
global commandcli-bump
version bump tool--dry-run
modenpm publish
--framework
overrideBuilt-in scaffolding for:
Generators automatically select templates based on your project’s framework. The CLI inspects package.json
for dependencies like React, Vue, or Angular and loads files from templates/<framework>
. Override detection with the --framework
flag:
cli generate:component Button --framework vue
If no framework is detected, the generators fall back to templates/default
.
cli-bump
Supports:
--dry-run
supportTo create a release on GitHub:
export GITHUB_TOKEN=ghp_YourTokenHere
node scripts/release-to-github.js
This project includes semantic-release support out of the box:
Requirements:
NPM_TOKEN
in GitHub Actions secretsGITHUB_TOKEN
in GitHub Actions secretsMIT — Customize and distribute freely under your own CLI brand.
Choose the workflow that fits your needs.
cli
in an existing projectnpm install -g @greenarmor/cli-boilerplate
cd path/to/your-existing-project
cli generate:component Button
The generators detect your framework and drop files into your project automatically.
git config --global user.name "your_github_username"
git config --global user.email "your_email@example.com"
npx @greenarmor/cli-boilerplate my-cli
--with-emoji
– show emoji-enhanced output--full-stack
– add ESLint, Prettier, Husky, Lint-Staged, Jest, ZX, Inquirer, Update Notifier, and more CLI polish librariesnpx @greenarmor/cli-boilerplate my-cli --with-emoji --full-stack
cd my-cli
npm install
npm link
my-cli --help