1.0.0 • Published 2 years ago

firestore-csv-import v1.0.0

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

firestore-csv-import

Usage

$ npx firestore-csv-import <csv path> -c <collection name> -p <certification path>

Example

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

Import csv file

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

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