@lyra/import-cli
CLI tool that imports documents from an ndjson file or URL
Last updated a year ago by bjoerge .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lyra/import-cli 
SYNC missed versions from official npm registry.

@lyra/import-cli

CLI tool that imports documents from an ndjson file or URL

Installation

npm install -g @lyra/import-cli

Usage

  CLI tool that imports documents from an ndjson file or URL

  Usage
    $ lyra-import -a <api host> -d <dataset> -t <token> sourceFile.ndjson

  Options
    -a, --api <api host> API host of lyra backend
    -d, --dataset <dataset> Dataset to import to
    -t, --token <token> Token to authenticate with
    --replace Replace documents with the same IDs
    --missing Skip documents that already exist
    --help Show this help

  Examples
    # Import "./my-dataset.ndjson" into dataset "staging"
    $ lyra-import -p myPrOj -d staging -t someSecretToken my-dataset.ndjson

    # Import into dataset "test" from stdin, read token from env var
    $ cat my-dataset.ndjson | lyra-import -p myPrOj -d test -

  Environment variables (fallbacks for missing flags)
    --token = LYRA_IMPORT_TOKEN

License

MIT-licensed. See LICENSE.

Current Tags

  • 0.3.0                                ...           latest (a year ago)

8 Versions

  • 0.3.0                                ...           a year ago
  • 0.2.8                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (6)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |