Skip to content

ya-s-u/firestore-csv-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Input

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