This is a project from The complete Node.js Developer Course - section 04.
4th - You can now type yarn command --help
or npm run command --help
on your terminal to see all the commands available. Of course, you can always see the commands down bellow as well.
Everytime you wish to run a command you shall type yarn command nameOfTheCommand --nameOfTheArgument="value"
or npm run command nameOfTheCommand --nameOfTheArgument="value"
Description: adds a new note
Params:
--title | string | required
--body | string | required
Description: remove a note
Params:
--title | string | required
Description: list all notes
Params:
none
Description: Read a note
Params:
--title | string | required
> yarn command add --title="My first note" --body="A note made for the purpose of demonstration"
Output:
---------------
New note added!
---------------
Title: My first note
Body: A note made for the purpose of demonstration