forked from openshift/openshift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openshift#32483 from sounix000/Update_changed_comm…
…ands_RHDEVDOCS_2438 RHDEVDOCS-2438: Update command changes for Pipelines 1.4
- Loading branch information
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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,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 | ||
---- |
This file contains 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