1.1.1 • Published 6 years ago

firestorebl v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

firestorebl

Codacy Badge Build Status

A command-line tool to help you to load data to Google Cloud Firestore.

How to install

npm i -g firestorebl

How to use

To get the version

firestorebl --version

How to get help

firestorebl --help

How to load data to Firestore

JSON files

firestorebl -f ./path/to/data.json -s ./path/to/service-account.json

or CSV files (delimiter ",")

firestorebl -f ./path/to/data.csv -s ./path/to/service-account.json

Parameters

PropertyDescriptionDefaultRequired?
-V --versionoutput the version number-No
-c --collectionthe collection namebulkloader_\<timestamp>No
-f --filethe file to be imported-Yes
-i --idattribute name to use as a document ID-No
-s --secretthe service account file (JSON)-Yes
-h --helpoutput usage information-No
  • If no collection name was informed the tool will create a default collection name in the format 'format bulkload_\<timestamp>'. Example:
bulkloader_1571683311550

Creating a service account

  1. In the GCP Console, go to the Create service account key page.
  2. From the Service account list, select New service account.
  3. In the Service account name field, enter a name.
  4. From the Role list, select Project > Owner.

Contributors

npm.ionpm.ionpm.ionpm.ionpm.ionpm.ionpm.ionpm.io