renovate/readme.md

53 lines
1.7 KiB
Markdown
Raw Normal View History

2016-12-17 16:26:06 +00:00
# renovate
2017-01-15 17:59:32 +00:00
> Keep npm dependencies up-to-date
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
## Why
2017-01-12 19:56:46 +00:00
2017-01-15 17:59:32 +00:00
- Creates or updates Pull Requests for each dependency that needs updating
- Supports multiple `package.json` files per repository
- Supports multiple major versions per-dependency at once
- Configurable via file, environment, CLI, and `package.json`
- Self-hosted
2017-01-12 19:56:46 +00:00
2017-01-15 17:59:32 +00:00
Inspired by the services at [Greenkeeper](https://greenkeeper.io) and [Doppins](https://doppins.com).
2017-01-13 08:47:23 +00:00
2017-01-15 17:59:32 +00:00
## Install
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
```
$ npm install -g renovate
```
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
## Authentication
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
You need to select a GitHub user for `renovate` to assume the identity of. It's recommended that you use a dedicated "bot" account for this to avoid user confusion.
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
The script will need a GitHub Personal Access Token with "repo" permissions. You can find instructions for generating it here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
This token needs to be configured via file, environment variable, or CLI. See [docs/configuration.md](docs/configuration.md) for details.
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
## Usage (CLI)
2016-12-18 11:00:41 +00:00
```
2017-01-15 17:59:32 +00:00
$ renovate --help
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
Usage: renovate [options] [repositories...]
2016-12-18 11:00:41 +00:00
2017-01-15 17:59:32 +00:00
Options:
2017-01-09 06:17:22 +00:00
2017-01-15 17:59:32 +00:00
-h, --help output usage information
-d, --dep-types <list> List of dependency types
-i, --ignore-deps <list> List of dependencies to ignore
-b, --labels <list> List of labels to apply
-l, --log-level <level> Log Level
-p, --package-files <list> List of package.json file names
-r, --recreate-prs Recreate PRs if previously closed
-t, --token <token> GitHub Auth Token
2017-01-09 06:17:22 +00:00
2017-01-15 17:59:32 +00:00
Examples:
2017-01-12 19:56:46 +00:00
2017-01-15 17:59:32 +00:00
$ renovate --token abc123 singapore/lint-condo
$ renovate --token abc123 -l verbose singapore/lint-condo
$ renovate --token abc123 singapore/lint-condo singapore/package-test
2016-12-18 11:00:41 +00:00
```