Skip to content

Commit

Permalink
Merge pull request openshift#32483 from sounix000/Update_changed_comm…
Browse files Browse the repository at this point in the history
…ands_RHDEVDOCS_2438

RHDEVDOCS-2438: Update command changes for Pipelines 1.4
  • Loading branch information
Preeticp authored Jun 24, 2021
2 parents 8e9bcc9 + befabb1 commit fbf588e
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli_reference/tkn_cli/op-tkn-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ include::modules/op-tkn-clustertask-management.adoc[leveloffset=+1]

// Trigger management commands
include::modules/op-tkn-trigger-management.adoc[leveloffset=+1]

// Hub interaction commands
include::modules/op-tkn-hub-interaction.adoc[leveloffset=+1]
91 changes: 91 additions & 0 deletions modules/op-tkn-hub-interaction.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
// Module included in the following assemblies:
//
// * cli_reference/tkn_cli/op-tkn-reference.adoc

[id="op-tkn-hub-interaction_{context}"]
= Hub interaction commands

Interact with Tekton Hub for resources such as tasks and pipelines.

== hub
Interact with hub.

.Example: Display help
[source,terminal]
----
$ tkn hub -h
----

.Example: Interact with a hub API server
[source,terminal]
----
$ tkn hub --api-server https://api.hub.tekton.dev
----

[NOTE]
====
For each example, to get the corresponding sub-commands and flags, run `tkn hub <command> --help`.
====

== hub downgrade
Downgrade an installed resource.

.Example: Downgrade the `mytask` task in the `mynamespace` namespace to it's older version
[source,terminal]
----
$ tkn hub downgrade task mytask --to version -n mynamespace
----

== hub get
Get a resource manifest by its name, kind, catalog, and version.

.Example: Get the manifest for a specific version of the `myresource` pipeline or task from the `tekton` catalog
[source,terminal]
----
$ tkn hub get [pipeline | task] myresource --from tekton --version version
----

== hub info
Display information about a resource by its name, kind, catalog, and version.

.Example: Display information about a specific version of the `mytask` task from the `tekton` catalog
[source,terminal]
----
$ tkn hub info task mytask --from tekton --version version
----

== hub install
Install a resource from a catalog by its kind, name, and version.

.Example: Install a specific version of the `mytask` task from the `tekton` catalog in the `mynamespace` namespace
[source,terminal]
----
$ tkn hub install task mytask --from tekton --version version -n mynamespace
----

== hub reinstall
Reinstall a resource by its kind and name.

.Example: Reinstall a specific version of the `mytask` task from the `tekton` catalog in the `mynamespace` namespace
[source,terminal]
----
$ tkn hub reinstall task mytask --from tekton --version version -n mynamespace
----

== hub search
Search a resource by a combination of name, kind, and tags.

.Example: Search a resource with a tag `cli`
[source,terminal]
----
$ tkn hub search --tags cli
----

== hub upgrade
Upgrade an installed resource.

.Example: Upgrade the installed `mytask` task in the `mynamespace` namespace to a new version
[source,terminal]
----
$ tkn hub upgrade task mytask --to version -n mynamespace
----
9 changes: 9 additions & 0 deletions modules/op-tkn-trigger-management.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ List EventListeners.
$ tkn eventlistener list -n myspace
----

== eventlistener logs
Display logs of an EventListener.

.Example: Display the logs of the `mylistener` EventListener in a namespace
[source,terminal]
----
$ tkn eventlistener logs mylistener -n myspace
----

== triggerbinding
Manage TriggerBindings.

Expand Down

0 comments on commit fbf588e

Please sign in to comment.