{"id":13778504,"url":"https://github.com/FirebaseExtended/firebase-import","last_synced_at":"2025-05-11T12:30:36.189Z","repository":{"id":8943911,"uuid":"10678442","full_name":"FirebaseExtended/firebase-import","owner":"FirebaseExtended","description":"Node module for importing large data into Firebase.","archived":false,"fork":false,"pushed_at":"2021-06-16T10:04:23.000Z","size":34,"stargazers_count":368,"open_issues_count":11,"forks_count":58,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-05-18T21:43:59.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FirebaseExtended.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-13T23:52:31.000Z","updated_at":"2024-05-15T08:49:39.000Z","dependencies_parsed_at":"2022-08-27T11:50:49.703Z","dependency_job_id":null,"html_url":"https://github.com/FirebaseExtended/firebase-import","commit_stats":null,"previous_names":["firebase/firebase-import"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Ffirebase-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Ffirebase-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Ffirebase-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FirebaseExtended%2Ffirebase-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FirebaseExtended","download_url":"https://codeload.github.com/FirebaseExtended/firebase-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224708951,"owners_count":17356521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:00:54.302Z","updated_at":"2024-11-17T14:30:31.323Z","avatar_url":"https://github.com/FirebaseExtended.png","language":"JavaScript","readme":"# Firebase-Import\nFirebase-import is a helper utility for importing large JSON files into your \n[Firebase Realtime Database](https://firebase.google.com/docs/database/). It breaks the JSON into smaller\nchunks and uploads them individually through the Firebase API.\n\nThis utility is designed and tested for imports of files up to 400MB.\n\n## Installing\n\nInstall the firebase-import module globally:\n\n    $ npm install -g firebase-import\n\nor install it locally and add it to your path:\n\n    $ npm install firebase-import\n    $ export PATH=$PATH:`npm bin`\n\n## Obtaining Service account file\nUsing your Google account, login to Firebase console: https://console.firebase.google.com/\n\nSee Example below\n\n1. Project Settings -\u003e\n2. Service Accounts -\u003e\n3. Generate new private key\n\n![Service Account Image](https://image.ibb.co/cBuuo9/service_account.png)\n\n\n## Usage\n\n    $ firebase-import\n    Usage: firebase-import\n\n    Options:\n      --database_url     Firebase database URL (e.g. https://databaseName.firebaseio.com).   [required]\n      --path             Database path (e.g. /products).                                     [required]\n      --json             The JSON file to import.                                            [required]\n      --merge            Write the top-level children without overwriting the whole parent.\n      --force            Don't prompt before overwriting data.\n      --service_account  Path to a JSON file with your service account credentials.\n\n## Example\n\n    $ firebase-import --database_url https://test.firebaseio-demo.com --path / --json test.json --service_account /path/to/your/service_account.json\n    All data at https://test.firebaseio-demo.com/ will be overwritten.\n    Press \u003center\u003e to proceed, Ctrl-C to abort.\n\n    Reading /Users/michael/tmp/test.json... (may take a minute)\n    Preparing JSON for import... (may take a minute)\n    Importing [=================================================] 100% (9431/9431)\n    Import completed.\n\nOr an example of merging the contents of test.json with what's already in Firebase:\n\n    $ firebase-import --database_url https://test.firebaseio-demo.com --path / --json test.json --merge --service_account /path/to/your/service_account.json\n    Each top-level child in test.json will be written under https://test.firebaseio-demo.com/.\n    If a child already exists, it will be overwritten.\n    Press \u003center\u003e to proceed, Ctrl-C to abort.\n\n    Reading /Users/michael/tmp/test.json... (may take a minute)\n    Preparing JSON for import... (may take a minute)\n    Importing [=================================================] 100% (9431/9431)\n    Import completed.\n","funding_links":[],"categories":["Utilities"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFirebaseExtended%2Ffirebase-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFirebaseExtended%2Ffirebase-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFirebaseExtended%2Ffirebase-import/lists"}