{"id":21905387,"url":"https://github.com/hex7c0/mongodb-restore-cli","last_synced_at":"2025-06-25T09:33:08.470Z","repository":{"id":25111627,"uuid":"28533035","full_name":"hex7c0/mongodb-restore-cli","owner":"hex7c0","description":"mongodb-restore cli for Nodejs","archived":false,"fork":false,"pushed_at":"2017-03-17T11:12:37.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"0.3","last_synced_at":"2025-06-02T04:16:03.747Z","etag":null,"topics":["cli","mongodb","nodejs","restore"],"latest_commit_sha":null,"homepage":"https://github.com/hex7c0/mongodb-restore-cli","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hex7c0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-12-27T09:12:11.000Z","updated_at":"2019-05-24T15:13:50.000Z","dependencies_parsed_at":"2022-08-24T17:12:17.115Z","dependency_job_id":null,"html_url":"https://github.com/hex7c0/mongodb-restore-cli","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/hex7c0/mongodb-restore-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmongodb-restore-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmongodb-restore-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmongodb-restore-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmongodb-restore-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex7c0","download_url":"https://codeload.github.com/hex7c0/mongodb-restore-cli/tar.gz/refs/heads/0.3","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fmongodb-restore-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261844675,"owners_count":23218398,"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":["cli","mongodb","nodejs","restore"],"created_at":"2024-11-28T16:33:08.160Z","updated_at":"2025-06-25T09:33:08.416Z","avatar_url":"https://github.com/hex7c0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [mongodb-restore-cli](https://github.com/hex7c0/mongodb-restore-cli)\n\n[![NPM version](https://img.shields.io/npm/v/mongodb-restore-cli.svg)](https://www.npmjs.com/package/mongodb-restore-cli)\n[![Linux Status](https://img.shields.io/travis/hex7c0/mongodb-restore-cli.svg?label=linux-osx)](https://travis-ci.org/hex7c0/mongodb-restore-cli)\n[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/mongodb-restore-cli.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/mongodb-restore-cli)\n[![Dependency Status](https://img.shields.io/david/hex7c0/mongodb-restore-cli.svg)](https://david-dm.org/hex7c0/mongodb-restore-cli)\n\nCLI for [`mongodb-restore`](https://github.com/hex7c0/mongodb-restore)\n\nSimilar to [mongorestore](http://docs.mongodb.org/manual/reference/program/mongorestore/)\n\n## Installation\n\nInstall through NPM\n\n```bash\nnpm install -g mongodb-restore-cli\n```\nor\n```bash\ngit clone git://github.com/hex7c0/mongodb-restore-cli.git\n```\n\n## API\n\nglobal cli with `-g` option\n```bash\n$ mongodb-restore -h\n\nUsage:\n  mongodb-restore [OPTIONS] [ARGS]\n\nOptions: \n      --verbose FILE     Save internal reporting into a logfile\n      --host STRING      Specifies a resolvable hostname for the mongod \n  -p, --parser [STRING]  Data parser (bson, json) (Default is bson)\n  -o, --out [STRING]     Specifies the directory where get the backup (Default is ./)\n  -r, --tar STRING       Extract files from a .tar file\n  -m, --metadata         Set metadata of collections as Index, ecc\n  -d, --drop             Drop every collection from the target database \n  -t, --timeout N        Exit if the process takes longer than N seconds\n  -v, --version          Display the current version\n  -h, --help             Display help and usage details\n```\n\n## Examples\n\nTake a look at my [examples](examples)\n\n### [License GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fmongodb-restore-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex7c0%2Fmongodb-restore-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fmongodb-restore-cli/lists"}