Tekton Cheat Sheet

Kubernetes-native CI/CD — run PipelineRuns and TaskRuns as cluster resources with Tekton CLI.

CI/CD3 sections · 16 commands
⌘K

Pipelines

6
tkn pipeline list

Pipelines in the namespace

tkn pipeline start NAME

Start a pipeline run

tkn pipeline start NAME -p repo-url=URL -w name=ws,claimName=vol

Start with params and workspaces

tkn pipelinerun list

Recent pipeline runs

tkn pipelinerun describe RUN

Run details and task status

tkn pipelinerun delete RUN

Delete a run

Tasks & Logs

6
tkn task list

Tasks in the namespace

tkn task start NAME --use-param-defaults

Run a task directly

tkn taskrun list

Recent task runs

tkn logs -f -L

Follow logs of the last run

tkn logs -f -p RUN -t TASKNAME

Logs of one task in a run

tkn triggers list

Event listener triggers

Resources

4
tkn task create -f task.yml

Create a task from YAML

tkn pipeline create -f pipeline.yml

Create a pipeline from YAML

kubectl apply -f pipeline-run.yml

Declarative pipeline run

kubectl get pipelinerun -w

Watch runs as CRs