1.0.11 • Published 9 years ago
itemsapi-cli v1.0.11
ItemsAPI CLI
Installation
$ npm install -g itemsapi-cliCommands
Generator
Generating new ItemsAPI starter application
$ itemsapi generate my-app Project (collection + mapping)
Create project using JSON filename
$ itemsapi projects create --api=http://localhost:5000/api/v1 --filename=movies.jsonCreate project using JSON url
$ itemsapi projects create --api=http://localhost:5000/api/v1 --url=https://raw.githubusercontent.com/itemsapi/itemsapi-example-data/master/items/movies-processed.jsonCollections
Print all
$ itemsapi collections list --api=http://localhost:5000/api/v1Items
Importing data
$ itemsapi items import --collection zouespow --filename data.json --api=http://localhost:5000/api/v1Exporting data
$ itemsapi items export --collection zouespow --api=http://localhost:5000/api/v1 > movies.jsonHelp
General help
$ itemsapi --helpSub-command help
$ itemsapi items --helpSpecific command help
$ itemsapi items import --help