Files
Hidde Beydals 22624ae4d5 Rename tk binary to gotk
To avoid conflicts with the `tk` binary from the Tanka project.
2020-09-01 11:33:49 +02:00
..
2020-09-01 11:33:49 +02:00
2020-09-01 11:33:49 +02:00

GOTK CLI Installation

Binaries for macOS and Linux AMD64 are available for download on the release page.

To install the latest release run:

curl -s https://raw.githubusercontent.com/fluxcd/toolkit/master/install/gotk.sh | sudo bash

The install script does the following:

  • attempts to detect your OS
  • downloads and unpacks the release tar file in a temporary directory
  • copies the gotk binary to /usr/local/bin
  • removes the temporary directory

If you want to use gotk as a kubectl plugin, rename the binary to kubectl-gotk:

mv /usr/local/bin/gotk /usr/local/bin/kubectl-gotk

Build from source

Clone the repository:

git clone https://github.com/fluxcd/toolkit
cd toolkit

Build the gotk binary (requires go >= 1.14):

make build

Run the binary:

./bin/gotk -h