Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcosvidolin/firestorebl
A command-line tool to help you to load data to Google Cloud Firestore. :fire::computer:
https://github.com/marcosvidolin/firestorebl
bulk bulkloader cloud-firestore command-line-tool firebase google google-cloud loader
Last synced: 9 days ago
JSON representation
A command-line tool to help you to load data to Google Cloud Firestore. :fire::computer:
- Host: GitHub
- URL: https://github.com/marcosvidolin/firestorebl
- Owner: marcosvidolin
- License: mit
- Created: 2019-10-20T20:41:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T21:25:16.000Z (over 2 years ago)
- Last Synced: 2024-11-21T00:23:46.327Z (2 months ago)
- Topics: bulk, bulkloader, cloud-firestore, command-line-tool, firebase, google, google-cloud, loader
- Language: JavaScript
- Homepage:
- Size: 4.07 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# firestorebl
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c6a6f350dcd8416ebd083bde565f5270)](https://www.codacy.com/manual/marcosvidolin/firestorebl?utm_source=github.com&utm_medium=referral&utm_content=marcosvidolin/firestorebl&utm_campaign=Badge_Grade) [![Build Status](https://travis-ci.org/marcosvidolin/firestorebl.svg?branch=master)](https://travis-ci.org/marcosvidolin/firestorebl)
A command-line tool to help you to load data to Google Cloud Firestore.
## How to install
```bash
npm i -g firestorebl
```## How to use
**To get the version**
```bash
firestorebl --version
```**How to get help**
```bash
firestorebl --help
```**How to load data to Firestore**
JSON files
```bash
firestorebl -f ./path/to/data.json -s ./path/to/service-account.json
```or CSV files (delimiter ",")
```bash
firestorebl -f ./path/to/data.csv -s ./path/to/service-account.json
```## Parameters
| Property | Description | Default | Required? |
|------------------|------------------------------------------|------------------------|-------------------|
| -V --version | output the version number | - | No |
| -c --collection | the collection name | bulkloader_\ | 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_\'. Example:
```bash
bulkloader_1571683311550
```## Creating a service account
1. In the GCP Console, go to the [Create service account key page](https://console.cloud.google.com/apis/credentials/serviceaccountkey?_ga=2.53555115.-20616629.1570127622&_gac=1.216335906.1570580812.EAIaIQobChMI9sTd3vON5QIVQQmRCh0ocQR2EAAYASAAEgL7_PD_BwE).
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
[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/0)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/0)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/1)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/1)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/2)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/2)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/3)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/3)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/4)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/4)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/5)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/5)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/6)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/6)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/images/7)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/firestorebl/links/7)