As developers, we kind of live with CLI tools. From git to cloud shells — we are using these tools everywhere. So, it’s time to make your own. We’ll use Heroku’s great oclif framework in the process.
It’s an open framework to build CLI tools quickly, and it’s provided by the well-known Heroku.
We’ll make a todo list command that can have four actions:
Oclif can generate two types of projects —
In this article, we’re gonna need a multiple commands project, so let’s generate it:
npx oclif multi todocli
Running this command and following the instructions will initialize a fresh project named todocli inside the current directory.
Now, let’s go inside the directory and run help…
#node-js