3.6. Installing the Knative CLI for macOS
If you are using macOS, you can install the Knative (kn) CLI as a binary file. To do this, you must download and unpack a tar.gz archive and add the binary to a directory on your PATH.
Procedure
Download the Knative (
kn) CLItar.gzarchive.You can also download any version of
knby navigating to that version’s corresponding directory in the Serverless client download mirror.- Unpack and extract the archive.
-
Move the
knbinary to a directory on yourPATH. To check your
PATH, open a terminal window and run:$ echo $PATH