{"id":43180,"library":"mongodb-restore-cli","title":"mongodb-restore-cli","description":"A CLI tool for restoring MongoDB backups, built on top of the mongodb-restore library. Version 0.5.0 is the latest stable release. It supports restoring from BSON/JSON, options for dropping collections before restore, metadata (indexes etc.) restoration, and extraction from tar files. Similar to the official mongorestore but published as an npm package. The project appears to be a personal utility with infrequent updates. Release cadence is unknown; last publish likely years ago.","status":"maintenance","version":"0.5.0","language":"javascript","source_language":"en","source_url":"https://github.com/hex7c0/mongodb-restore-cli","tags":["javascript","mongodb","restore","cli"],"install":[{"cmd":"npm install mongodb-restore-cli","lang":"bash","label":"npm"},{"cmd":"yarn add mongodb-restore-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add mongodb-restore-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Install globally to use the 'mongodb-restore' command.","wrong":"npm install mongodb-restore-cli (without -g, installed locally but used as CLI)","symbol":"mongodb-restore-cli","correct":"npm install -g mongodb-restore-cli"}],"quickstart":{"code":"npm install -g mongodb-restore-cli\nmongodb-restore --host localhost:27017 --drop --out /path/to/backup","lang":"javascript","description":"Installs the CLI globally and runs a restore command targeting a local MongoDB instance, dropping existing collections and reading from a backup directory."},"warnings":[{"fix":"Consider using official mongorestore tool or a maintained alternative like mongodb-backup.","message":"This package is not actively maintained; last update likely years ago. Not compatible with modern Mongo versions.","severity":"gotcha","affected_versions":">=0.5.0"},{"fix":"Be careful with PATH order or use fully qualified paths.","message":"CLI name 'mongodb-restore' may conflict with official MongoDB tool of same name if both are in PATH.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.5.0':22 'ago':78 'appear':61 'backup':11 'bson/json':32 'built':12 'cadenc':71 'cli':4,6,82 'collect':36 'drop':35 'etc':41 'extract':44 'file':47 'index':40 'infrequ':68 'javascript':79 'last':74 'latest':25 'librari':20 'like':76 'metadata':39 'mongodb':2,10,18,80 'mongodb-restor':17 'mongodb-restore-c':1 'mongorestor':52 'npm':57 'offici':51 'option':33 'packag':58 'person':65 'project':60 'publish':54,75 'releas':27,70 'restor':3,9,19,30,38,42,81 'similar':48 'stabl':26 'support':29 'tar':46 'tool':7 'top':14 'unknown':73 'updat':69 'util':66 'version':21 'year':77","created_at":"2026-06-05T16:58:34.146716+00:00","updated_at":"2026-06-05T16:58:34.146716+00:00","problems":[{"fix":"Run 'npm install -g mongodb-restore-cli' and ensure npm global bin directory is in PATH.","cause":"Package not installed globally or not in PATH.","error":"'mongodb-restore' is not recognized as an internal or external command"},{"fix":"Upgrade Node.js to version 12 or later.","cause":"Node version too old (<1) for ES modules if code uses import, but package supports Node >=1.","error":"SyntaxError: Unexpected token import"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/hex7c0/mongodb-restore-cli","github":"https://github.com/hex7c0/mongodb-restore-cli","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-restore-cli","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}