0.3.0 • Published 5 years ago

@lyra/import-cli v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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.

0.3.0

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago