Scaffold a CLI project with interactive-commander and TypeScript
Run the following command and follow the prompts:
npm create interactive-commander@latest
You can also directly specify the template variables via command line arguments.
For example to create a project in the my-project
directory with the package
name set to node-my-command
and the command name set to my-command
, run:
npm create interactive-commander@latest -- --directory-name my-project --package-name node-my-command --command-name my-command
For more information, run:
npm create interactive-commander@latest -- generate --help