This is a sample TypeScript project that demonstrates how you can create simple CLI scripts. It uses yargs
to handle input parameters and dotenv
to handle environment specific variables.
You can run a command from the package.json
file's scripts
section with parameters like this:
npm run hello -- --env=dev --who=John