This is a simple starter project for creating a CLI with Node. Includes, out of the box:
- Full TypeScript Support
- Uses Commander.js to parse the sub-commands and options
- LocalStorage API support to persist data between runs (stored in the
cache
directory) - Loading environment variables from
.env
courtesy ofdotenv
- has built-in SQLite set up so you can save application data
- Built-in ORM for SQLite via Sequelize
- Supports migrations via Sequelize CLI (and generation of Models, Seeds, etc.)
- interactively prompt the user with Inquirer.js
- API calls over http(s) via Axios
Important
Requires Node 18 or higher.
- Integrate Ink: 🌈 React for interactive command-line apps
- Devise and document a method to include the CLI within other apps (for example to use this as a very nice task runner)