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.
# 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