/create-example-cli

An example npm package CLI

Primary LanguageJavaScript

create-example-cli

This is an example project that demonstrates what an npm package CLI could look like.

Read the full walkthrough at https://www.alexchantastic.com/building-an-npm-create-package.

Usage

# npm
npm create example-cli@latest

# Yarn
yarn create example-cli

# pnpm
pnpm create example-cli

There is also an optional argument that is accepted:

# npm
npm create example-cli@latest -- foobar

# Yarn
yarn create example-cli foobar

# pnpm
pnpm create example-cli foobar