Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including couchdb-wedge with all npm packages installed. Try it out:

couchdb-wedge lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("couchdb-wedge/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

couchdb-wedge v0.0.1

CLI and node modules for doing bulk operations like deleting all databases on a server or replicating all databases from one server to another.

CouchDB Wedge

CLI and node module for doing bulk operations like deleting all databases on a server or replicating all databases from one server to another.

Install

npm install -g couchdb-wedge

Example of a pull replication of all databases except for _replicator and resources

wedge replicate-all-dbs --worker https://username:password@serverb.cloudant.com --target https://username:password@serverb.example.com --source https://username:password@servera.example.com --exclude _replicator,resources

Example of deleting all databases on a server except for _replicator and _users

wedge delete-all-dbs --target http://username:password@server.example.com --exclude _replicator,_users

This command has a prompt asking the user to confirm the action.

Example of pre-warming CouchDB view cache, which forces generation of index for all databases on the couch server.

wedge pre-warm-views --target http://username:password@target-server.org

This command has a prompt asking the user to confirm the action.

Develop

Get the code and set your own wedge command to resolve to that codebase.

git clone git@github.com:rjsteinert/CouchDB-Wedge.git
cd CouchDB-Wedge
npm link
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free