{"id":18561279,"url":"https://github.com/apostrophecms/rename-mongodb-database","last_synced_at":"2025-06-13T21:06:54.357Z","repository":{"id":231127666,"uuid":"780925313","full_name":"apostrophecms/rename-mongodb-database","owner":"apostrophecms","description":"CLI tool to rename mongodb databases with one command","archived":false,"fork":false,"pushed_at":"2024-04-04T13:38:02.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T09:06:50.229Z","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/apostrophecms.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T12:26:06.000Z","updated_at":"2024-04-02T17:15:18.000Z","dependencies_parsed_at":"2024-11-06T22:06:44.659Z","dependency_job_id":"20250ac3-1f65-4829-9e4a-5be11686b37c","html_url":"https://github.com/apostrophecms/rename-mongodb-database","commit_stats":null,"previous_names":["apostrophecms/rename-mongodb-database"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/apostrophecms/rename-mongodb-database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apostrophecms%2Frename-mongodb-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apostrophecms%2Frename-mongodb-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apostrophecms%2Frename-mongodb-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apostrophecms%2Frename-mongodb-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apostrophecms","download_url":"https://codeload.github.com/apostrophecms/rename-mongodb-database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apostrophecms%2Frename-mongodb-database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259719722,"owners_count":22901241,"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-11-06T22:06:24.718Z","updated_at":"2025-06-13T21:06:54.327Z","avatar_url":"https://github.com/apostrophecms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rename-mongodb-database\n\n*A handy little utility from [apostrophecms](https://apostrophecms.com)*\n\nRename a mongodb database with one command:\n\n```bash\n# Talks to mongodb on localhost by default\nrename-mongodb-database oldname newname\n\n# Talk to some other mongodb installation (all MongoDB URIs work)\nrename-mongodb-database oldname newname --uri=mongodb://user:pass@somewhere\n\n# Rename many databases with a matching prefix at once\n# renames oldprefix-db1 to newprefix-db1, oldprefix-db2 to newprefix-db2, etc.\n# does not rename someotherprefix-db\nrename-mongodb-database oldprefix newprefix --many\n```\n\nThis command will overwrite the new database with the contents of the old, if it already exists, and drop the old database.\n\n## Installation\n\n```\nnpm install -g @apostrophecms/rename-mongodb-database\n```\n\n## Requirements\n\n**You must have `mongosh` (or `mongo`) `mongodump` and `mongorestore` installed.** Depending on how you installed MongoDB itself, this might not be automatic.\nSee the MongoDB documentation for more information about the MongoDB command line tools. MongoDB must be at\nleast version 3.4.x, but keep in mind that 5.0 is the oldest release MongoDB officially supports.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapostrophecms%2Frename-mongodb-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapostrophecms%2Frename-mongodb-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapostrophecms%2Frename-mongodb-database/lists"}