Skip to content

Commit

Permalink
Document how to use go install
Browse files Browse the repository at this point in the history
This is often more convenient then manually downloading the binary because it's so simple and the command doesn't change between initial install / later upgrades.
  • Loading branch information
jeffwidman authored Aug 10, 2023
1 parent ff42974 commit 041ab6e
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ The `dependabot` CLI is a tool for testing and debugging Dependabot update jobs.

## Installation

You can download a pre-built binary from the [releases] page.

If you have the [`gh`][gh] command available,
you can install the latest release of `dependabot` using the following command
([gist source](https://gist.github.com/mattt/e09e1ecd76d5573e0517a7622009f06f)):

```console
gh gist view --raw e09e1ecd76d5573e0517a7622009f06f | bash
```
Use any of the following for a pain-free installation:

* If you have [`go`](https://go.dev/doc/install) installed, you can run:
```shell
go install github.com/dependabot/cli/cmd/dependabot@latest
```
The benefit of this method is that re-running the command will always update to the latest version.
* You can download a pre-built binary from the [releases] page.
* If you have the [`gh`][gh] command available, you can install the latest release
of `dependabot` using the following command ([gist source](https://gist.github.com/mattt/e09e1ecd76d5573e0517a7622009f06f)):
```shell
gh gist view --raw e09e1ecd76d5573e0517a7622009f06f | bash
```

## Requirements

Expand Down

0 comments on commit 041ab6e

Please sign in to comment.