You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once your module and services are ready to be executed, add scripts in your package.json (if you want to use them)
{"scripts": {// from sources"console:dev": "ts-node -r tsconfig-paths/register src/console.ts",// from build (we suppose your app was built in the dist folder)"console": "node dist/console.js"}}
Usage
Call the cli (production)
# using node
node dist/console.js --help
# using npm
npm run console -- --help
# using yarn
yarn console --help
Call the cli from sources (dev)
# using ts-node
ts-node -r tsconfig-paths/register src/console.ts --help
# using npm
npm run console:dev -- --help
# using yarn
yarn console:dev --help
Example of Response
Usage: console [options] [command]
Options:
-h, --help output usage information
Commands:
list <directory> List content of a directory
new A command to create an item