|
1 |
| -# Heroku Repo plugin |
| 1 | +@heroku-cli/plugin-heroku-repo |
| 2 | +============================== |
2 | 3 |
|
3 |
| -This plugin adds some commands to the heroku gem to interact with the app's repo |
| 4 | +Heroku Repo CLI Plugin |
4 | 5 |
|
5 |
| -## Installation |
| 6 | +<!-- toc --> |
| 7 | +* [Usage](#usage) |
| 8 | +* [Commands](#commands) |
| 9 | +<!-- tocstop --> |
6 | 10 |
|
7 |
| -To install: |
| 11 | +# Usage |
| 12 | +```sh-session |
| 13 | +$ heroku plugins:install @heroku-cli/plugin-heroku-repo |
| 14 | +$ heroku repo:COMMAND |
| 15 | +running command... |
| 16 | +$ heroku repo --help [COMMAND] |
| 17 | +USAGE |
| 18 | + $ heroku repo:COMMAND |
| 19 | +... |
| 20 | +``` |
8 | 21 |
|
9 |
| - $ heroku plugins:install heroku-repo |
| 22 | +# Commands |
| 23 | +<!-- commands --> |
| 24 | +* [`heroku repo:clone`](#heroku-repoclone) |
| 25 | +* [`heroku repo:download [FILENAME]`](#heroku-repodownload-filename) |
| 26 | +* [`heroku repo:gc`](#heroku-repogc) |
| 27 | +* [`heroku repo:purge_cache`](#heroku-repopurge_cache) |
| 28 | +* [`heroku repo:purge-cache`](#heroku-repopurge-cache) |
| 29 | +* [`heroku repo:reset`](#heroku-reporeset) |
10 | 30 |
|
11 |
| -## Commands |
| 31 | +## `heroku repo:clone` |
12 | 32 |
|
13 |
| -### clone |
| 33 | +clone the application repo to your local filesystem |
14 | 34 |
|
15 |
| - $ heroku repo:clone -a appname |
| 35 | +``` |
| 36 | +USAGE |
| 37 | + $ heroku repo:clone -a <value> [-r <value>] |
16 | 38 |
|
17 |
| -This will clone the applications repo to your local filesystem. No collaboration necessary! |
| 39 | +FLAGS |
| 40 | + -a, --app=<value> (required) app to run command against |
| 41 | + -r, --remote=<value> the git remote to use |
18 | 42 |
|
19 |
| -### download |
| 43 | +DESCRIPTION |
| 44 | + clone the application repo to your local filesystem |
| 45 | +``` |
20 | 46 |
|
21 |
| - $ heroku repo:download -a appname |
| 47 | +_See code: [src/commands/repo/clone.ts](https://github.com/heroku/heroku-repo/blob/v1.0.14/src/commands/repo/clone.ts)_ |
22 | 48 |
|
23 |
| -This will download the applications repo as a tarball. |
| 49 | +## `heroku repo:download [FILENAME]` |
24 | 50 |
|
25 |
| -### gc |
| 51 | +download the application repo as a tarball |
26 | 52 |
|
27 |
| - $ heroku repo:gc -a appname |
| 53 | +``` |
| 54 | +USAGE |
| 55 | + $ heroku repo:download [FILENAME] -a <value> [-r <value>] |
28 | 56 |
|
29 |
| -This will run a `git gc --aggressive` against the applications repo. This is done inside a run process on the application. |
| 57 | +ARGUMENTS |
| 58 | + FILENAME a filename for the tarball |
30 | 59 |
|
31 |
| -### purge-cache |
| 60 | +FLAGS |
| 61 | + -a, --app=<value> (required) app to run command against |
| 62 | + -r, --remote=<value> the git remote to use |
32 | 63 |
|
33 |
| - $ heroku repo:purge_cache -a appname |
| 64 | +DESCRIPTION |
| 65 | + download the application repo as a tarball |
| 66 | +``` |
34 | 67 |
|
35 |
| -This will delete the contents of the build cache stored in the repository. This is done inside a run process on the application. |
| 68 | +_See code: [src/commands/repo/download.ts](https://github.com/heroku/heroku-repo/blob/v1.0.14/src/commands/repo/download.ts)_ |
36 | 69 |
|
37 |
| -### reset |
| 70 | +## `heroku repo:gc` |
38 | 71 |
|
39 |
| - $ heroku repo:reset -a appname |
| 72 | +run a git gc --aggressive on an application's repository |
40 | 73 |
|
41 |
| -This will empty the remote repository. |
| 74 | +``` |
| 75 | +USAGE |
| 76 | + $ heroku repo:gc -a <value> [-r <value>] |
| 77 | +
|
| 78 | +FLAGS |
| 79 | + -a, --app=<value> (required) app to run command against |
| 80 | + -r, --remote=<value> the git remote to use |
| 81 | +
|
| 82 | +DESCRIPTION |
| 83 | + run a git gc --aggressive on an application's repository |
| 84 | +``` |
| 85 | + |
| 86 | +_See code: [src/commands/repo/gc.ts](https://github.com/heroku/heroku-repo/blob/v1.0.14/src/commands/repo/gc.ts)_ |
| 87 | + |
| 88 | +## `heroku repo:purge_cache` |
| 89 | + |
| 90 | +delete the contents of the build cache in the repository |
| 91 | + |
| 92 | +``` |
| 93 | +USAGE |
| 94 | + $ heroku repo:purge_cache -a <value> [-r <value>] |
| 95 | +
|
| 96 | +FLAGS |
| 97 | + -a, --app=<value> (required) app to run command against |
| 98 | + -r, --remote=<value> the git remote to use |
| 99 | +
|
| 100 | +DESCRIPTION |
| 101 | + delete the contents of the build cache in the repository |
| 102 | +
|
| 103 | +ALIASES |
| 104 | + $ heroku repo:purge_cache |
| 105 | +``` |
| 106 | + |
| 107 | +## `heroku repo:purge-cache` |
| 108 | + |
| 109 | +delete the contents of the build cache in the repository |
| 110 | + |
| 111 | +``` |
| 112 | +USAGE |
| 113 | + $ heroku repo:purge-cache -a <value> [-r <value>] |
| 114 | +
|
| 115 | +FLAGS |
| 116 | + -a, --app=<value> (required) app to run command against |
| 117 | + -r, --remote=<value> the git remote to use |
| 118 | +
|
| 119 | +DESCRIPTION |
| 120 | + delete the contents of the build cache in the repository |
| 121 | +
|
| 122 | +ALIASES |
| 123 | + $ heroku repo:purge_cache |
| 124 | +``` |
| 125 | + |
| 126 | +_See code: [src/commands/repo/purge-cache.ts](https://github.com/heroku/heroku-repo/blob/v1.0.14/src/commands/repo/purge-cache.ts)_ |
| 127 | + |
| 128 | +## `heroku repo:reset` |
| 129 | + |
| 130 | +reset the repo |
| 131 | + |
| 132 | +``` |
| 133 | +USAGE |
| 134 | + $ heroku repo:reset -a <value> [-r <value>] |
| 135 | +
|
| 136 | +FLAGS |
| 137 | + -a, --app=<value> (required) app to run command against |
| 138 | + -r, --remote=<value> the git remote to use |
| 139 | +
|
| 140 | +DESCRIPTION |
| 141 | + reset the repo |
| 142 | +``` |
| 143 | + |
| 144 | +_See code: [src/commands/repo/reset.ts](https://github.com/heroku/heroku-repo/blob/v1.0.14/src/commands/repo/reset.ts)_ |
| 145 | +<!-- commandsstop --> |
0 commit comments