mwc-commander
v1.0.8
Published
A CLI that allows to access infromation from the MWC, developers and professional tech who will attend.
Downloads
5
Readme
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 install
npm link
The last command will create a symlink in the global folder, after that, we use our custom command mwc
Second
npm i mwc-commander -g
Install 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 [email protected]
$ ? 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 day
You may want to list all available command, run:
$ mwc help
// or
$ mwc
UNINSTALL
npm uninstall -g mwc-commander
Unistall the command globally