Skip to content

Plugin for heroku CLI that can manipulate the repo

License

Notifications You must be signed in to change notification settings

heroku/heroku-repo

Repository files navigation

@heroku-cli/plugin-heroku-repo

Heroku Repo CLI Plugin

Usage

$ heroku plugins:install @heroku-cli/plugin-heroku-repo
$ heroku repo:COMMAND
running command...
$ heroku repo --help [COMMAND]
USAGE
  $ heroku repo:COMMAND
...

Commands

heroku repo:clone

clone the application repo to your local filesystem

USAGE
  $ heroku repo:clone -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  the git remote to use

DESCRIPTION
  clone the application repo to your local filesystem

See code: src/commands/repo/clone.ts

heroku repo:download [FILENAME]

download the application repo as a tarball

USAGE
  $ heroku repo:download [FILENAME] -a <value> [-r <value>]

ARGUMENTS
  FILENAME  a filename for the tarball

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  the git remote to use

DESCRIPTION
  download the application repo as a tarball

See code: src/commands/repo/download.ts

heroku repo:gc

run a git gc --aggressive on an application's repository

USAGE
  $ heroku repo:gc -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  the git remote to use

DESCRIPTION
  run a git gc --aggressive on an application's repository

See code: src/commands/repo/gc.ts

heroku repo:purge_cache

delete the contents of the build cache in the repository

USAGE
  $ heroku repo:purge_cache -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  the git remote to use

DESCRIPTION
  delete the contents of the build cache in the repository

ALIASES
  $ heroku repo:purge_cache

heroku repo:purge-cache

delete the contents of the build cache in the repository

USAGE
  $ heroku repo:purge-cache -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  the git remote to use

DESCRIPTION
  delete the contents of the build cache in the repository

ALIASES
  $ heroku repo:purge_cache

See code: src/commands/repo/purge-cache.ts

heroku repo:reset

reset the repo

USAGE
  $ heroku repo:reset -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  the git remote to use

DESCRIPTION
  reset the repo

See code: src/commands/repo/reset.ts