Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

itemsapi/itemsapi-cli

Repository files navigation

ItemsAPI

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

Releases

No releases published

Packages

No packages published