1
0
mirror of synced 2026-02-06 19:05:55 +00:00
Files
flux2/install
Martin H Berwanger ab7ff6551f Install script improvements #24
- add checksum verification with sha256sum fallback to shasum
- add downloader fallback to wget
- add os and architecture checks
2020-08-20 08:32:04 -04:00
..
2020-08-20 08:32:04 -04:00

TK 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/tk.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 tk binary to /usr/local/bin
  • removes the temporary directory

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

mv /usr/local/bin/tk /usr/local/bin/kubectl-tk

Build from source

Clone the repository:

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

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

make build

Run the binary:

./bin/tk -h