-
Notifications
You must be signed in to change notification settings - Fork 18
Updates to CLI Reference - RHDEVDOCS-1521 #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Preeticp
merged 6 commits into
openshift:op-0.10-master
from
nkakkar81:RHDEVDOCS-1521-CLI-Changes
Mar 23, 2020
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3a791d8
Updates to CLI Reference - RHDEVDOCS-1521
nkakkar81 4514c13
Review comments Fixed
nkakkar81 61657ab
Review comments plus few more heading changes
nkakkar81 cdee148
CLI Comments Incorporated-All file names modified to remove CLI
nkakkar81 6c5c815
Id/Context names aligned with File names
nkakkar81 e30de42
Minor changes
nkakkar81 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * pipelines/op-tkn-reference.adoc | ||
|
||
[id="op-tkn-clustertask-management-commands_{context}"] | ||
= Clustertask management commands | ||
nkakkar81 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
== tkn clustertask | ||
Manage clustertasks. | ||
|
||
.Example: Display help | ||
---- | ||
$ tkn clustertask --help | ||
---- | ||
|
||
== tkn clustertask delete | ||
Delete a clustertask resource in a cluster. | ||
|
||
.Example: Delete `mytask1` and `mytask2` clustertasks | ||
---- | ||
$ tkn clustertask delete mytask1 mytask2 | ||
---- | ||
|
||
|
||
== tkn clustertask describe | ||
Describe a clustertask. | ||
|
||
.Example: Describe the `mytask` clustertask | ||
---- | ||
$ tkn clustertask describe mytask1 | ||
---- | ||
|
||
== tkn clustertask list | ||
List clustertasks in a namespace. | ||
|
||
.Example: List clustertasks in a namespace | ||
---- | ||
$ tkn clustertask list -n myspace | ||
---- | ||
== tkn clustertask start | ||
Start clustertasks. | ||
|
||
.Example: Start the `mytask` clustertask in a namespace | ||
---- | ||
$ tkn clustertask start mytask -n myspace | ||
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * pipelines/op-tkn-references.adoc | ||
|
||
[id="op-tkn-condition-management_{context}"] | ||
= Condition management commands | ||
|
||
== tkn condition | ||
Manage conditions. | ||
|
||
.Example: Display help | ||
---- | ||
$ tkn condition --help | ||
---- | ||
|
||
== tkn condition delete | ||
Delete a condition in a namespace. | ||
|
||
.Example: Delete the `mycondition1` condition from a namespace | ||
---- | ||
$ tkn condition delete mycondition1 -n myspace | ||
---- | ||
|
||
== tkn condition list | ||
List conditions in a namespace. | ||
|
||
.Example: List conditions in a namespace | ||
---- | ||
$ tkn condition list -n myspace | ||
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * pipelines/op-tkn-references.adoc | ||
|
||
[id="op-tkn-pipeline-management_{context}"] | ||
= Pipelines management commands | ||
|
||
== tkn pipeline | ||
Manage pipelines. | ||
|
||
.Example: Display help | ||
---- | ||
$ pipeline --help | ||
---- | ||
|
||
== tkn pipeline create | ||
Create a pipeline in a namespace. | ||
|
||
.Example: Create a pipeline defined by the `mypipeline.yaml` file in a namespace | ||
----- | ||
$ tkn pipeline create -f mypipeline.yaml -n myspace | ||
----- | ||
|
||
== tkn pipeline delete | ||
|
||
Delete a pipeline in a namespace. | ||
|
||
.Example: Delete the `mypipeline` pipeline from a namespace | ||
---- | ||
$ tkn pipeline delete mypipeline -n myspace | ||
---- | ||
|
||
== tkn pipeline describe | ||
Describe a pipeline in a namespace. | ||
|
||
.Example: Describe `mypipeline` pipeline | ||
---- | ||
$ tkn pipeline describe mypipeline | ||
---- | ||
|
||
== tkn pipeline list | ||
List pipelines in a namespace. | ||
|
||
.Example: Display a list of pipelines | ||
----- | ||
$ tkn pipeline list | ||
----- | ||
|
||
== tkn pipeline logs | ||
Display pipeline logs for a specific pipeline. | ||
|
||
.Example: Stream live logs for the `mypipeline` pipeline | ||
---- | ||
$ tkn pipeline logs -f mypipeline | ||
---- | ||
|
||
== tkn pipeline start | ||
Start a pipeline. | ||
|
||
.Example: Start `mypipeline` pipeline | ||
---- | ||
$ tkn pipeline start mypipeline | ||
---- |
45 changes: 45 additions & 0 deletions
45
modules/ROOT/pages/op-tkn-pipeline-resource-management.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * pipelines/op-tkn-reference.adoc | ||
|
||
[id="op-tkn-pipeline-resource-management_{context}"] | ||
= Pipeline resource management commands | ||
|
||
== tkn resource | ||
Manage pipeline resources. | ||
|
||
.Example: Display help | ||
---- | ||
$ tkn resource -h | ||
---- | ||
|
||
== tkn resource create | ||
Create a pipeline resource in a namespace. | ||
|
||
.Example: Create pipeline resource defined by the `myresource.yaml` file in a namespace | ||
---- | ||
$ tkn resource create -f myresource.yaml -n myspace | ||
---- | ||
|
||
== tkn resource delete | ||
Delete a pipeline resource in a namespace. | ||
|
||
.Example: Delete the `myresource` pipeline resource from a namespace | ||
---- | ||
$ tkn resource delete myresource -n myspace | ||
---- | ||
|
||
== tkn resource describe | ||
Describes a pipeline resource in a namespace. | ||
|
||
.Example: Describe the `myresource` pipeline resource | ||
---- | ||
$ tkn resource describe myresource -n `myspace` | ||
---- | ||
== tkn resource list | ||
List pipeline resources in a namespace. | ||
|
||
.Example: List all pipeline resources in a namespace | ||
---- | ||
$ tkn resource list -n `myspace` | ||
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * pipelines/op-tkn-references.adoc | ||
|
||
[id="op-tkn-pipeline-run_{context}"] | ||
= Pipelinerun commands | ||
|
||
|
||
== tkn pipelinerun | ||
Manage pipelineruns. | ||
|
||
.Example: Display help | ||
---- | ||
$ tkn pipelinerun -h | ||
---- | ||
|
||
== tkn pipelinerun cancel | ||
Cancel a pipelinerun in a namespace. | ||
|
||
.Example: Cancel the `mypipelinerun` pipelinerun from a namespace | ||
---- | ||
$ tkn pipeline cancel mypipelinerun -n myspace | ||
---- | ||
|
||
== tkn pipelinerun delete | ||
Delete pipelinerun in a namespace. | ||
|
||
.Example: Delete pipelineruns from a namespace | ||
---- | ||
$ tkn pipelinerun delete mypipelinerun1 mypipelinerun2 -n myspace | ||
---- | ||
|
||
== tkn pipelinerun describe | ||
Describe a pipelinerun in a namespace. | ||
|
||
.Example: Describe the `mypipelinerun` pipelinerun in a namespace | ||
---- | ||
tkn pipelinerun describe mypipelinerun -n myspace | ||
---- | ||
|
||
== tkn pipelinerun list | ||
Display a list of pipelineruns in a namespace. | ||
|
||
.Example: Display a list of pipelineruns in a namespace | ||
---- | ||
$ tkn pipelinerun list -n myspace | ||
---- | ||
|
||
== tkn pipelinerun logs | ||
Show the logs of pipelinerun. | ||
|
||
.Example: Display the logs of the `mypipelinerun` pipelinerun with all tasks and steps in a namespace | ||
---- | ||
$ tkn pipelinerun logs mypipeline -a -n myspace | ||
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[id='op-tkn-reference'] | ||
= Pipeline `tkn` reference | ||
//include::modules/common-attributes.adoc[] | ||
:context: op-tkn-reference | ||
toc::[] | ||
|
||
|
||
This section lists basic `tkn` CLI commands. For a more detailed description, see link:https://github.com/tektoncd/cli[Tekton Pipelines CLI]. | ||
|
||
== Basic Syntax | ||
`tkn [command or options] [arguments...]` | ||
|
||
== Global Options | ||
`--help, -h` | ||
|
||
include::op-tkn-utility-commands.adoc[leveloffset=+1] | ||
include::op-tkn-pipeline-management.adoc[leveloffset=+1] | ||
include::op-tkn-pipeline-run.adoc[leveloffset=+1] | ||
include::op-tkn-task-management.adoc[leveloffset=+1] | ||
include::op-tkn-task-run.adoc[leveloffset=+1] | ||
include::op-tkn-condition-management.adoc[leveloffset=+1] | ||
include::op-tkn-pipeline-resource-management.adoc[leveloffset=+1] | ||
include::op-tkn-clustertask-management.adoc[leveloffset=+1] | ||
include::op-tkn-trigger-management.adoc[leveloffset=+1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * pipelines/op-tkn-reference.adoc | ||
|
||
[id="op-tkn-task-management_{context}"] | ||
= Task management commands | ||
|
||
== tkn task | ||
Manage tasks. | ||
|
||
.Example: Display help | ||
---- | ||
$ tkn task -h | ||
---- | ||
|
||
== tkn task create | ||
Create a task in a namespace. | ||
|
||
.Example: Create a task defined by the `mytask.yaml` file in a namespace | ||
---- | ||
$ tkn task create -f mytask.yaml -n myspace | ||
---- | ||
|
||
== tkn task delete | ||
Delete task resources in a namespace. | ||
|
||
.Example: Delete `mytask1` and `mytask2` tasks from a namespace | ||
---- | ||
$ tkn task delete mytask1 mytask2 -n myspace | ||
---- | ||
|
||
== tkn task describe | ||
Describe a task in a namespace. | ||
|
||
.Example: Describe the `mytask` task in a namespace | ||
---- | ||
$ tkn task describe mytask -n myspace | ||
---- | ||
|
||
== tkn task list | ||
List tasks in a namespace. | ||
|
||
.Example: List all the tasks in a namespace | ||
---- | ||
$ tkn task list -n myspace | ||
---- | ||
|
||
== tkn task logs | ||
Display task logs. | ||
|
||
.Example: Display logs for the `mytaskrun` taskrun of the `mytask` task | ||
---- | ||
$ tkn task logs mytask mytaskrun -n myspace | ||
---- | ||
|
||
== tkn task start | ||
Start a task. | ||
|
||
.Example: Start the `mytask` task in a namespace | ||
---- | ||
$ tkn task start mytask -s <ServiceAccountName> -n myspace | ||
---- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to change the title to op-tkn-cli... or do you want to do that in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can do this as part of moving the assembly to OCP