mwc-commander v1.0.8
mwc-commander
CLI for MWC(Mobile World Congress), that allows to access information from the MWC and other developers and technology professionals who will attend.
Installation
There are 2 ways to use the CLI
First
After clone the repositoy, run:
npm installnpm linkThe last command will create a symlink in the global folder, after that, we use our custom command mwc
Second
npm i mwc-commander -gInstall the command from https://www.npmjs.com/package/mwc-commander directly.
Command
mwc init|i. Fetch MWC data and save into database(THIS SHOULD BE YOUR FIRST COMMAND TO RUN)
$ mwc init
// or
$ mwc i mwc list|l. Show a list of developers who will be attending MWC
$ mwc list
// or
$ mwc l You might pass orderBy option for mwc list command to order the data:
$ mwc list --orderBy=name
$ mwc list --orderBy=email
$ mwc list --orderBy=category
$ mwc list --orderBy=phone
$ mwc list --orderBy=days_to_attend mwc add|a. Add a new developer who will be attending MWC
$ mwc add
// or
$ mwc a
$ ? Developer's name Test
$ ? Developer's email address test@test.com
$ ? Developer's phone 123-1234
$ ? Select day to attend Mar 1, 2021, Mar 2, 2021
$ ? Developer's category Back
✔ Inserted new deveoper mwc day. Show the number of days available for MWC
$ mwc dayYou may want to list all available command, run:
$ mwc help
// or
$ mwcUNINSTALL
npm uninstall -g mwc-commanderUnistall the command globally