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 deleteTo Use It
Run
npm run compilecommand to compile typescript to javascript, asfliptedis linked to a compiled javascript file under.buildfolder.Run
npm install -g .to install thebinscript. This will addfliptedto the system path. Whenever you typefliptedin the command line interface, it will run the file that is pointed bybin. Seepackage.jsonfor more info.
To Support More Commands
See
data/index.tsanddata/objectives.tsfor examples.
References
Last updated
Was this helpful?