starter-structure-cli can be used with npx, the standard npm create flow, or developed locally from this repository.
- Node.js 18 or later
- npm 9 or later
Run the CLI without installing it globally:
npx starter-structure-cli my-appRun it with the npm create convention:
npm create starter-structure-cli@latest my-appOr install it globally:
npm install -g starter-structure-cli
starter-structure-cli my-appIf you run npm install starter-structure-cli, npm will only install the package into the current directory. It will not execute the scaffolder for you.
Install dependencies:
npm installVerify the CLI is available:
node ./bin/starter-structure-cli.js --helpBuild generated templates from template-sources:
npm run build:architecture-stubs
npm run build:templates
npm run check:create-packageValidate generated templates:
npm run check:templatesThe package automatically rebuilds templates during npm pack through the prepack script.