$ tkn
This section lists the basic tkn
CLI commands.
Delete a pipeline.
mypipeline
pipeline from a namespace$ tkn pipeline delete mypipeline -n myspace
Describe a pipeline.
mypipeline
pipeline$ tkn pipeline describe mypipeline
Cancel a pipeline run.
mypipelinerun
pipeline run from a namespace$ tkn pipelinerun cancel mypipelinerun -n myspace
Delete a pipeline run.
$ tkn pipelinerun delete mypipelinerun1 mypipelinerun2 -n myspace
$ tkn pipelinerun delete -n myspace --keep 5 (1)
1 | Replace 5 with the number of most recently executed pipeline runs you want to retain. |
$ tkn pipelinerun delete --all
Starting with Red Hat OpenShift Pipelines 1.6, the |
Describe a pipeline run.
mypipelinerun
pipeline run in a namespace$ tkn pipelinerun describe mypipelinerun -n myspace
Delete a task.
mytask1
and mytask2
tasks from a namespace$ tkn task delete mytask1 mytask2 -n myspace
Describe a task.
mytask
task in a namespace$ tkn task describe mytask -n myspace
Cancel a task run.
mytaskrun
task run from a namespace$ tkn taskrun cancel mytaskrun -n myspace
Delete a TaskRun.
mytaskrun1
and mytaskrun2
task runs from a namespace$ tkn taskrun delete mytaskrun1 mytaskrun2 -n myspace
$ tkn taskrun delete -n myspace --keep 5 (1)
1 | Replace 5 with the number of most recently executed task runs you want to retain. |
Describe a task run.
mytaskrun
task run in a namespace$ tkn taskrun describe mytaskrun -n myspace