About Tekton CLI
With the Tekton Pipelines command-line interface (CLI) you can interact with Tekton from a terminal. This section describes how to install it and lists the basic commands.
Installing the CLI
In order to interact with Tekton from a terminal, you need to install the Tekton CLI (tkn
).
Installing from binary
For macOS X
-
Get the
tar.gz
:curl -LO https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Darwin_x86_64.tar.gz
-
Extract
tkn
to your PATH:sudo tar xvzf tkn_0.4.0_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
For Linux AMD64
-
Get the
tar.gz
:curl -LO https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Linux_x86_64.tar.gz
-
Extract
tkn
to your PATH:sudo tar xvzf tkn_0.4.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
For Linux ARM64
-
Get the
tar.gz
:curl -LO https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Linux_arm64.tar.gz
-
Extract
tkn
to your PATH:sudo tar xvzf tkn_0.4.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn
For Windows
-
Get the
.zip
file:PS C:\Users\Admin\Downloads> curl -Uri https://github.com/tektoncd/cli/releases/download/v0.4.0/tkn_0.4.0_Windows_x86_64.zip -OutFile tkn_0.4.0_Windows_x86_64.zip
-
Extract
tkn
to your path:
Expand-Archive -Path <sourcepath>/tkn_0.4.0_Windows_x86_64.zip -DestinationPath <destinationpath>
Basic Tekton CLI commands
This section lists basic Tekton CLI commands. For a more detailed desciption, see Tekton Pipelines CLI.
Utility commands
tkn
Parent command for Tekton CLI.
tkn completion
Prints shell completion scripts.
tkn version
Prints version information.
Managing and running pipelines
tkn pipeline
Manages pipelines.
tkn pipeline describe
Describes a pipeline in a namespace.
tkn pipeline list
Lists pipelines in a namespace.
tkn pipeline logs
Shows pipeline logs.
tkn pipeline start
Starts pipelines.
tkn pipelinerun
Manages pipelineruns.
tkn pipelinerun describe
Describes a pipelinerun in a namespace.
tkn pipelinerun list
Lists pipelineruns in a namespace.
tkn pipelinerun logs
Shows pipelinerun logs.
Managing pipeline resources
tkn resource
Manages pipeline resources.
tkn resource describe
Describes a pipeline resource in a namespace.
tkn resource list
Lists pipeline resources in a namespace.
Managing and running tasks
tkn task
Manages tasks.
tkn task list
Lists tasks in a namespace.
tkn taskrun
Manages taskruns.
tkn taskrun list
Lists taskruns in a namespace.
tkn taskrun logs
Shows taskruns logs.
Managing clusters
tkn clustertask
Manages clustertasks.
tkn clustertask list
Lists clustertasks in a namespace.