Use flipted CLI
Now we have a flipted
cli tool for interacting between our service APIs and database.
Supported Commands
$flipted --help
flipted [command]
Commands:
flipted course <action> Access course APIs
flipted mission <action> Access mission APIs
flipted missionMastery <action> Access missionMastery APIs
flipted objective <action> Access objective APIs
flipted progress <action> Access progress APIs
flipted roster <action> Access roster APIs
flipted user <action> Access user APIs
flipted target <action> Access target APIs
flipted targetMastery <action> Access targetMastery APIs
flipted task <action> Access task APIs
flipted taskblock <action> Access taskblock APIs
Options:
--version Show version number [boolean]
--help Show help [boolean]
Examples
flipted objective add --input=data/objective.json
flipted objective get --id=xxx
flipted objective list
flipted objective import
flipted objective delete
To Use It
Run
npm run compile
command to compile typescript to javascript, asflipted
is linked to a compiled javascript file under.build
folder.Run
npm install -g .
to install thebin
script. This will addflipted
to the system path. Whenever you typeflipted
in the command line interface, it will run the file that is pointed bybin
. Seepackage.json
for more info.
To Support More Commands
See
data/index.ts
anddata/objectives.ts
for examples.
References
Last updated
Was this helpful?