Package Exports
- firestorebl
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (firestorebl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
firestorebl
A command-line tool to help you to load data to Google Cloud Firestore.
How to install
npm i -g firestoreblHow to use
To get the version
firestorebl --versionHow to get help
firestorebl --helpHow to load data to Firestore
JSON files
firestorebl -f ./path/to/data.json -s ./path/to/service-account.jsonor CSV files (delimiter ",")
firestorebl -f ./path/to/data.csv -s ./path/to/service-account.jsonParameters
| Property | Description | Default | Required? |
|---|---|---|---|
| -V --version | output the version number | - | No |
| -c --collection | the collection name | bulkloader_<timestamp> | No |
| -f --file | the file to be imported | - | Yes |
| -i --id | attribute name to use as a document ID | - | No |
| -s --secret | the service account file (JSON) | - | Yes |
| -h --help | output 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_1571683311550Creating a service account
- In the GCP Console, go to the Create service account key page.
- From the Service account list, select New service account.
- In the Service account name field, enter a name.
- From the Role list, select Project > Owner.