The Tekton Pipelines cli project provides a CLI for interacting with Tekton!
Download the latest binary executable for your operating system:
-
Mac OS X
tektoncd-cli
is available from brew:
brew install tektoncd-cli
- Or by the released tarball:
# Get the tar.xz curl -LO https://github.com/tektoncd/cli/releases/download/v0.17.1/tkn_0.17.1_Darwin_x86_64.tar.gz # Extract tkn to your PATH (e.g. /usr/local/bin) sudo tar xvzf tkn_0.17.1_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
-
Windows
tektoncd-cli
can be installed as a Chocolatey package:
choco install tektoncd-cli --confirm
-
Or by the released zip file in the instructions below:
-
Uncompress the zip file
-
Add the location of where the executable is to your
Path
by openingControl Panel>System and Security>System>Advanced System Settings
-
Click on
Environment Variables
, select thePath
variable, and clickEdit
-
Click
New
and add the location of the uncompressed zip to thePath
-
Finish by clicking
Ok
-
# Get the tar.xz curl -LO https://github.com/tektoncd/cli/releases/download/v0.17.1/tkn_0.17.1_Linux_x86_64.tar.gz # Extract tkn to your PATH (e.g. /usr/local/bin) sudo tar xvzf tkn_0.17.1_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
-
# Get the tar.xz curl -LO https://github.com/tektoncd/cli/releases/download/v0.17.1/tkn_0.17.1_Linux_arm64.tar.gz # Extract tkn to your PATH (e.g. /usr/local/bin) sudo tar xvzf tkn_0.17.1_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
-
# Get the tar.gz curl -LO https://github.com/tektoncd/cli/releases/download/v0.17.1/tkn_0.17.1_Linux_s390x.tar.gz # Extract tkn to your PATH (e.g. /usr/local/bin) sudo tar xvzf tkn_0.17.1_Linux_s390x.tar.gz -C /usr/local/bin/ tkn
-
# Get the tar.gz curl -LO https://github.com/tektoncd/cli/releases/download/v0.17.1/tkn_0.17.1_Linux_ppc64le.tar.gz # Extract tkn to your PATH (e.g. /usr/local/bin) sudo tar xvzf tkn_0.17.1_Linux_ppc64le.tar.gz -C /usr/local/bin/ tkn
If you are running on any of the following rpm based distros:
- Fedora30
- Fedora31
- Centos7
- Centos8
- EPEL
- RHEL8
you would be able to use @chmouel's unofficial copr package repository by running the following commands:
dnf copr enable chmouel/tektoncd-cli
dnf install tektoncd-cli
On any other RPM based distros, you can install the rpm directly:
rpm -Uvh https://github.com/tektoncd/cli/releases/download/v0.17.1/tektoncd-cli-0.17.1_Linux-64bit.rpm
If you are running on the latest LTS Ubuntu or Debian, you can use the TektonCD CLI PPA:
sudo apt update;sudo apt install -y gnupg
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EFE0E0A2F2F60AA
echo "deb http://ppa.launchpad.net/tektoncd/cli/ubuntu focal main"|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list
sudo apt update && sudo apt install -y tektoncd-cli
The PPA may work with older releases, but that hasn't been tested.
On any other Debian or Ubuntu based distro, you can simply install the binary package directly with dpkg
:
curl -LO https://github.com/tektoncd/cli/releases/download/v0.14qqq.0/tektoncd-cli-0.17.1_Linux-64bit.deb
dpkg -i tektoncd-cli-0.17.1_Linux-64bit.deb
You can install tektoncd-cli
from nixpkgs on any system that supports the nix
package manager.
nix-env --install tektoncd-cli
You can install the latest tektoncd-cli if you are using Homebrew on Linux as for the osx version you need to simply do :
brew install tektoncd-cli
If you have go installed and you want to compile the CLI from source, you can checkout the Git repository and run the following commands:
export GO111MODULE=on
make bin/tkn
This will output the tkn
binary in bin/tkn
kubectl
will find any binary named kubectl-*
on your PATH and consider it as a plugin.
After installing tkn, create a link as kubectl-tkn
$ ln -s /usr/local/bin/tkn /usr/local/bin/kubectl-tkn
Run the following to confirm tkn is available as a plugin:
$ kubectl plugin list
You should see the following after running kubectl plugin list if tkn is available as a plugin:
/usr/local/bin/kubectl-tkn
If the output above is shown, run kubectl-tkn to see the list of available tkn commands to run.
The following commands help you understand and effectively use the Tekton CLI:
tkn help:
Displays a list of the commands with helpful information.tkn clustertask:
Parent command of the ClusterTask command group.tkn clustertriggerbinding:
Parent command of the ClusterTriggerBinding command group.tkn completion:
Outputs a BASH, ZSH, Fish or PowerShell completion script fortkn
to allow command completion with Tab.tkn condition:
Parent command of the Condition command group.tkn eventlistener:
Parent command of the Eventlistener command group.tkn hub:
Search and install Tekton Resources from Hubtkn pipeline:
Parent command of the Pipeline command group.tkn pipelinerun:
Parent command of the Pipelinerun command group.tkn resource:
Parent command of the Resource command group.tkn task:
Parent command of the Task command group.tkn taskrun:
Parent command of the Taskrun command group.tkn triggerbinding:
Parent command of the Triggerbinding command group.tkn triggertemplate:
Parent command of the Triggertemplate command group.tkn version:
Outputs the cli version.
For every tkn
command, you can use -h
or --help
flags to display specific help for that command.
For many tkn
commands, color and emojis by default will appear in command output. tkn
offers two approaches for disabling
color and emojis from command output.
To remove the color and emojis from all tkn
command output, set the environment variable NO_COLOR
, such as shown below:
export NO_COLOR=""
More information on NO_COLOR
can be found in the NO_COLOR
documentation.
To remove color and emojis from the output of a single command execution, the --no-color
option can be used with any command,
such as in the example below:
tkn taskrun describe --no-color
We are so excited to have you!
- See CONTRIBUTING.md for an overview of our processes
- See DEVELOPMENT.md for how to get started
- See ROADMAP.md for the current roadmap
- Look at our good first issues and our help wanted issues