This project provides a way to skip the setup and instantly start building a commander CLI tool.
To view all current commands run:
yarn start help
-
yarn start detach_git
This will reset your local git repository. Useful after recently cloning from the public repository. -
yarn start create_command <command_name>
This will create a new .command.ts file in thesrc/commands
folder. All.command.ts
files are automatically registered for the CLI. Then you can invoke your new command withyarn start <command_name>
.
git clone https://github.com/Nazaire/commander-bootstrap
cd commander-bootstrap
yarn
yarn start detach_git
You now have a project base ready for you to start adding new commands.
You can quickly add a new command with yarn start create_command <command_name>