1
0
mirror of synced 2026-02-06 19:05:55 +00:00
Files
flux2/install
Hidde Beydals e2752e4508 Rename gotk binary to flux
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-29 16:25:16 +01:00
..
2020-10-29 16:25:16 +01:00
2020-10-29 16:25:16 +01:00

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

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

mv /usr/local/bin/flux /usr/local/bin/kubectl-flux

Build from source

Clone the repository:

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

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

make build

Run the binary:

./bin/flux -h