[Custom CLI] Develop and Publish a Node.js CLI from Scratch
Before you use any frameworks, you should know the fundamentals of what makes Node CLI's tick. Here we explain everything you need to know to write a complete Node.js CLI from scratch, parse arguments, publish it to NPM for users, and set up yarn symlinks for optimal developer experience. Create a mycli.js file, in the very first line, we will add this code #!/usr/bin/env node It tells the running env. The benenfits for that is in order to run mycli.s file: // Before node ./mycli.js // After ./mycli.js Pass the argv: We also want to pass some information into file, in order to do some