CLI Migrate Guide
Initially, moleculer's project-cli was inside the boilerplate repository. This makes it hard to upgrade cli version for users. We decided to move project cli to it's own package.
This guide will walk you through migrating to new cli.
If you have @pankod/pankod-cli in your devDependencies, you can skip this guide.
Remove
project-clifolder completely. (rm -rf project-cli)npm install -D @pankod/pankod-cli
Add this to your package.json;
"pankod": {
"projectType": "moleculer"
},
- Update your
cliscript inpackage.json;
"cli": "pankod-cli add",
That's it! Now you should be able to use new cli, add Entity or Service.