These notes are intended to be used and studied in tandem with Shawn Wang's Build Custom CLI Tooling with oclif and TypeScript course.
This cheatsheet cover:
- Create a Simple CLI
- Pass Args and flags to a CLI
- Set up testing for a CLI
- Add filesystem state to a CLI
- Scaffold boilerplates (e.g. templates)
- Polish the CLI with colors, spinners, etc.
- Spawn child processes so other CLIs can run
- Control logging & output from other processes
These are community notes that I hope everyone who studies benefits from. If you notice areas that could be improved please feel free to open a PR!