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 heroku-deploy-archive with all npm packages installed. Try it out:

var herokuDeployArchive = require("heroku-deploy-archive")

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

heroku-deploy-archive v2.0.0

Deploy to Heroku from an archive


The successor of the heroku-build plugin


After installing the Heroku Toolbelt run:

$ heroku plugins:install heroku-deploy-archive

the plugin should now be listed under heroku plugins:

$ heroku plugins
=== Installed Plugins


After loggin in with the heroku toolbelt (heroku auth) bundle all the files you need to be deployed together as a tarball, like this:

cd files-to-be-deployed
tar cvvf deploy-me.tgz ./*

then deploy with:

$ heroku deploy:archive -app your-app ./deploy-me.tgz some-version

Where some-version should be replaced with a meaningful version information (it's up to you).

For instance you may want to do:

$ heroku deploy:archive --app ./deploy-me.tgz "$(git rev-parse HEAD)"

which will use the current git commit hash as the version to be displayed on the "Activity" panel on


Found a bug or have an improvement or new feature in mind? Awesome! Just go for it with either a pull request or an issue - also check out the file


MIT License.


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