# heroku-publisher

> CLI tool to publish static website to Heroku

Latest version **0.1.14** (published 2014-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install heroku-publisher
pnpm add heroku-publisher
yarn add heroku-publisher
bun add heroku-publisher
```

Provides the command `heroku-publisher`.

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.14 |
| Published | 2014-10-02 |
| First published | 2014-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Perez |
| Maintainers | tuvistavie |
| Keywords | git |

## Links

- npm: https://www.npmjs.com/package/heroku-publisher
- Repository: https://github.com/claudetech/heroku-publisher
- Issues: https://github.com/claudetech/heroku-publisher/issues
- npm.io page: https://npm.io/package/heroku-publisher

## Dependencies (6)

- [lodash](https://npm.io/package/lodash.md) ^2.4.1
- [prompt](https://npm.io/package/prompt.md) git+https://github.com/claudetech/prompt.git
- [git-cli](https://npm.io/package/git-cli.md) ^0.8.0
- [argparse](https://npm.io/package/argparse.md) ^0.1.15
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.11.0
- [heroku-legacy](https://npm.io/package/heroku-legacy.md) ^0.1.4

## Recent versions

- 0.1.14 (latest) — 2014-10-02
- 0.1.13 — 2014-09-28
- 0.1.12 — 2014-09-28
- 0.1.11 — 2014-09-02
- 0.1.10 — 2014-08-27
- 0.1.9 — 2014-08-27
- 0.1.8 — 2014-08-27
- 0.1.7 — 2014-08-27
- 0.1.6 — 2014-08-27
- 0.1.5 — 2014-08-27
- 0.1.4 — 2014-08-27
- 0.1.3 — 2014-08-27
- 0.1.2 — 2014-08-27
- 0.1.1 — 2014-08-27
- 0.1.0 — 2014-08-27

## README

# heroku-publisher

A CLI tool to publish static websites to Heroku.

## Installation

Just run

```sh
$ npm install heroku-publisher
```

Use `-g` if you want to use this as a CLI tool.

## Usage

### From CLI

Running

```sh
$ heroku-publisher
```

will try to create a Heroku application with the name of
the current directory, or to use the existing one.
You can pass `-n APP_NAME` to change the application name.

By default, this will serve your `./public` directory.

If you need to build your project before publishing,
pass the `-b` option with your compile command:

```sh 
$ heroku-publisher publish -n "grunt compile"
```

### Programatically

```coffee
options = { retry: true, appName: 'myherokuapp', build: 'grunt compile:dev' }
publisher.publish options, (err, app) ->
  console.log "App published to #{app.web_url}"
```

---
_Source: https://npm.io/package/heroku-publisher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
