Commands Cheat Sheet

Evaluating engineering tools? Get the comparison in Google Sheets

(Perfect for making buy/build decisions or internal reviews.)

Most-used commands
Your email is safe thing.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Setup and Installation

kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
Install Tekton Pipelines

kubectl apply -f https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml
Install Tekton Dashboard

kubectl apply -f https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml
Install Tekton Triggers

Task Management

kubectl apply -f task.yaml
Create a task

kubectl get tasks
List all tasks

kubectl describe task
Get details of a specific task

kubectl delete task
Delete a task

Pipeline Management

kubectl apply -f pipeline.yaml
Create a pipeline

kubectl get pipelines
List all pipelines

kubectl describe pipeline
Get details of a specific pipeline

kubectl delete pipeline
Delete a pipeline

PipelineRun Management

kubectl apply -f pipelinerun.yaml
Create a pipeline run

kubectl create -f pipelinerun.yaml
Create a pipeline run (alternative)

tkn pipeline start
Start a pipeline using tkn CLI

kubectl get pipelineruns
List all pipeline runs

kubectl describe pipelinerun
Get details of a specific pipeline run

kubectl delete pipelinerun
Delete a pipeline run

TaskRun Management

kubectl apply -f taskrun.yaml
Create a task run

tkn task start
Start a task using tkn CLI

kubectl get taskruns
List all task runs

kubectl describe taskrun
Get details of a specific task run

kubectl delete taskrun
Delete a task run

Logs and Debugging

kubectl logs
Get logs of a task run pod

tkn pipelinerun logs
Get logs of a pipeline run using tkn CLI

tkn taskrun logs
Get logs of a task run using tkn CLI

TKN CLI Commands

tkn pipeline list
List all pipelines

tkn task list
List all tasks

tkn pipelinerun list
List all pipeline runs

tkn taskrun list
List all task runs

tkn resource list
List all pipeline resources

tkn hub search
Search for tasks/pipelines in Tekton Hub

tkn hub install task
Install a task from Tekton Hub

Tekton Triggers

kubectl apply -f trigger.yaml
Create a trigger

kubectl get triggers
List all triggers

kubectl describe trigger
Get details of a specific trigger

kubectl delete trigger
Delete a trigger

kubectl apply -f triggerbinding.yaml
Create a trigger binding

kubectl apply -f triggertemplate.yaml
Create a trigger template

kubectl apply -f eventlistener.yaml
Create an event listener