1
1
// This module is included in the following assemblies:
2
+ //
2
3
// * tkn_cli/op-tkn-reference.adoc
3
4
5
+ :_mod-docs-content-type: REFERENCE
4
6
[id="op-tkn-task-run_{context} "]
5
7
= Task run commands
6
8
@@ -16,35 +18,35 @@ $ tkn taskrun -h
16
18
== taskrun cancel
17
19
Cancel a task run.
18
20
19
- .Example: Cancel the `mytaskrun` task run from a namespace
21
+ .Example: Cancel a task run from a namespace
20
22
[source,terminal]
21
23
----
22
- $ tkn taskrun cancel mytaskrun -n myspace
24
+ $ tkn taskrun cancel <task_run_name> -n <namespace_name>
23
25
----
24
26
25
27
== taskrun delete
26
28
Delete a TaskRun.
27
29
28
- .Example: Delete the `mytaskrun1` and `mytaskrun2` task runs from a namespace
30
+ .Example: Delete task runs from a namespace
29
31
[source,terminal]
30
- ----
31
- $ tkn taskrun delete mytaskrun1 mytaskrun2 -n myspace
32
+ ----
33
+ $ tkn taskrun delete <task_run_name_1> <task_run_name_2> -n <namespace_name>
32
34
----
33
35
34
36
.Example: Delete all but the five most recently executed task runs from a namespace
35
37
[source,terminal]
36
38
----
37
- $ tkn taskrun delete -n myspace --keep 5 <1>
39
+ $ tkn taskrun delete -n <namespace_name> --keep 5 <1>
38
40
----
39
41
<1> Replace `5` with the number of most recently executed task runs you want to retain.
40
42
41
43
== taskrun describe
42
44
Describe a task run.
43
45
44
- .Example: Describe the `mytaskrun` task run in a namespace
46
+ .Example: Describe a task run in a namespace
45
47
[source,terminal]
46
48
----
47
- $ tkn taskrun describe mytaskrun -n myspace
49
+ $ tkn taskrun describe <task_run_name> -n <namespace_name>
48
50
----
49
51
50
52
== taskrun list
@@ -53,16 +55,16 @@ List task runs.
53
55
.Example: List all the task runs in a namespace
54
56
[source,terminal]
55
57
----
56
- $ tkn taskrun list -n myspace
58
+ $ tkn taskrun list -n <namespace_name>
57
59
----
58
60
59
61
60
62
== taskrun logs
61
63
Display task run logs.
62
64
63
- .Example: Display live logs for the `mytaskrun` task run in a namespace
65
+ .Example: Display live logs for a task run in a namespace
64
66
65
67
[source,terminal]
66
68
----
67
- $ tkn taskrun logs -f mytaskrun -n myspace
69
+ $ tkn taskrun logs -f <task_run_name> -n <namespace_name>
68
70
----
0 commit comments