Coder Social home page Coder Social logo

arvida / heroku-mongo-pull Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 9 KB

✨ Pull a MongoDB database from your Heroku app to localhost using mongodump / mongorestore ✨

Home Page: https://www.npmjs.com/package/heroku-mongo-pull

License: MIT License

JavaScript 100.00%
heroku mongodb heroku-mongo heroku-cli-plugin

heroku-mongo-pull's Introduction

heroku-mongo-pull

Pull a Mongodb database used by your Heroku app to localhost using mongodump / mongorestore commands.

Install

$ heroku plugins:install heroku-mongo-pull

Usage

$ heroku mongo:pull

This will replace the database with the same name as your app on localhost with the database specified by your apps Heroku config.

The databased replaced can be specified by setting the MONGO_URL env variables:

$ MONGO_URL=mongodb://username:password@localhost:9999/my-database heroku mongo:pull 

Options

$ heroku mongo:pull --noIndexRestore

This will skip index restoration when importing the data. This can be usefull if you are using different versions of MongoDB and just want to import the data.

heroku-mongo-pull's People

Contributors

arvida avatar bolmaster2 avatar snurra avatar

Watchers

 avatar

Forkers

bolmaster2

heroku-mongo-pull's Issues

Missing file on version 2.1.1

It seems that the file "commands" is missing on the version 2.1.1.

"(node:18368) [MODULE_NOT_FOUND] @oclif/plugin-legacy: Plugin heroku-mongo-pull: Error: Cannot find module './commands/pull.j"'

No issues with the 2.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.