Step 1: Build the basic structure

#! /usr/env/bin node
Copy the code

Step 2 Create a local soft link

npm link
Copy the code

Step 3 Set the version of the CLI tool

Const {program} = require('commander') program.version('1.0.0')Copy the code

Writing Objectives:

1. Interpretation of Koa2 source code

2.Node.js Scaffolding Guide