itemsapi-cli
v1.0.11
Published
The command line interface for ItemsAPI
Downloads
8
Maintainers
Readme
ItemsAPI CLI
Installation
$ npm install -g itemsapi-cli
Commands
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.json
Create 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.json
Collections
Print all
$ itemsapi collections list --api=http://localhost:5000/api/v1
Items
Importing data
$ itemsapi items import --collection zouespow --filename data.json --api=http://localhost:5000/api/v1
Exporting data
$ itemsapi items export --collection zouespow --api=http://localhost:5000/api/v1 > movies.json
Help
General help
$ itemsapi --help
Sub-command help
$ itemsapi items --help
Specific command help
$ itemsapi items import --help