Complete instructions for installing kn binary (#4096)

* complete instructions for installing kn binary

* linting

* style standards and formatting

* trailing whitespace

* generic path-to-binary
This commit is contained in:
Paul Schweigert 2021-08-10 06:21:13 -04:00 committed by GitHub
parent 1b74ec3eb5
commit 4ea7c79db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 1 deletions

View File

@ -11,7 +11,28 @@
You can install `kn` by downloading the executable binary for your system and placing it in the system path.
A link to the latest stable binary release is available on the <a href="https://github.com/knative/client/releases" target="_blank">`kn` release page</a>.
1. Download the binary for your system from the <a href="https://github.com/knative/client/releases" target="_blank">`kn` release page</a>.
1. Rename the binary to `kn` and make it executable by running the commands:
```
mv <path-to-binary-file> kn
chmod +x kn
```
Where `<path-to-binary-file>` is the path to the binary file you downloaded in the previous step, for example, `kn-darwin-amd64` or `kn-linux-amd64`.
1. Move the executable binary file to a directory on your PATH by running the command:
```
mv kn /usr/local/bin
```
1. Verify that the plugin is working by running the command:
```
kn version
```
=== "Using Go"