Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ya-s-u/firestore-csv-import

CLI tools for importing csv files to firestore documents
https://github.com/ya-s-u/firestore-csv-import

firebase firestore

Last synced: 12 days ago
JSON representation

CLI tools for importing csv files to firestore documents

Awesome Lists containing this project

README

        

# firestore-csv-import

## Usage

```sh
$ npx firestore-csv-import -c -p
```

## Example

```sh
$ npx firestore-csv-import test.csv -c tests -p key.json -k id -t date -i id
```

### Input

```csv
id,name,point
1,hoge,1
2,fuga,2
3,piyo,3
```

### Output

スクリーンショット 2023-09-10 8 10 51

## Options

### `-c`, `--collection`

Firestore collection name

### `-p`, `--path`

Firebase certification file path

### `-k`, `--key`

Firestore id field

### `-t`, `--timestamp`

Firestore timestamp field (default: false)

### `-i`, `--ignore`

Ignore fields \*commma separated

### `-h`, `--help`

Display help for command