This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 5. Pipelines CLI (tkn)
5.1. Installing tkn Link kopierenLink in die Zwischenablage kopiert!
Use the tkn CLI to manage Red Hat OpenShift Pipelines from a terminal. The following section describes how to install tkn on different platforms.
You can also find the URL to the latest binaries from the OpenShift Container Platform web console by clicking the ? icon in the upper-right corner and selecting Command Line Tools.
5.1.1. Installing Red Hat OpenShift Pipelines CLI (tkn) on Linux Link kopierenLink in die Zwischenablage kopiert!
For Linux distributions, you can download the CLI directly as a tar.gz archive.
Procedure
Download the relevant CLI.
Unpack the archive:
tar xvzf <file>
$ tar xvzf <file>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Place the
tknbinary in a directory that is on yourPATH. To check your
PATH, run:echo $PATH
$ echo $PATHCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.2. Installing Red Hat OpenShift Pipelines CLI (tkn) on Linux using an RPM Link kopierenLink in die Zwischenablage kopiert!
For Red Hat Enterprise Linux (RHEL) version 8, you can install the Red Hat OpenShift Pipelines CLI (tkn) as an RPM.
Prerequisites
- You have an active OpenShift Container Platform subscription on your Red Hat account.
- You have root or sudo privileges on your local system.
Procedure
Register with Red Hat Subscription Manager:
subscription-manager register
# subscription-manager registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Pull the latest subscription data:
subscription-manager refresh
# subscription-manager refreshCopy to Clipboard Copied! Toggle word wrap Toggle overflow List the available subscriptions:
subscription-manager list --available --matches '*pipelines*'
# subscription-manager list --available --matches '*pipelines*'Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the output for the previous command, find the pool ID for your OpenShift Container Platform subscription and attach the subscription to the registered system:
subscription-manager attach --pool=<pool_id>
# subscription-manager attach --pool=<pool_id>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the repositories required by Red Hat OpenShift Pipelines:
Linux (x86_64, amd64)
subscription-manager repos --enable="pipelines-1.7-for-rhel-8-x86_64-rpms"
# subscription-manager repos --enable="pipelines-1.7-for-rhel-8-x86_64-rpms"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Linux on IBM Z and LinuxONE (s390x)
subscription-manager repos --enable="pipelines-1.7-for-rhel-8-s390x-rpms"
# subscription-manager repos --enable="pipelines-1.7-for-rhel-8-s390x-rpms"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Linux on IBM Power Systems (ppc64le)
subscription-manager repos --enable="pipelines-1.7-for-rhel-8-ppc64le-rpms"
# subscription-manager repos --enable="pipelines-1.7-for-rhel-8-ppc64le-rpms"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Install the
openshift-pipelines-clientpackage:yum install openshift-pipelines-client
# yum install openshift-pipelines-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow
After you install the CLI, it is available using the tkn command:
tkn version
$ tkn version
5.1.3. Installing Red Hat OpenShift Pipelines CLI (tkn) on Windows Link kopierenLink in die Zwischenablage kopiert!
For Windows, the tkn CLI is provided as a zip archive.
Procedure
- Download the CLI.
- Unzip the archive with a ZIP program.
-
Add the location of your
tkn.exefile to yourPATHenvironment variable. To check your
PATH, open the command prompt and run the command:path
C:\> pathCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.1.4. Installing Red Hat OpenShift Pipelines CLI (tkn) on macOS Link kopierenLink in die Zwischenablage kopiert!
For macOS, the tkn CLI is provided as a tar.gz archive.
Procedure
- Download the CLI.
- Unpack and unzip the archive.
-
Move the
tknbinary to a directory on your PATH. To check your
PATH, open a terminal window and run:echo $PATH
$ echo $PATHCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2. Configuring the OpenShift Pipelines tkn CLI Link kopierenLink in die Zwischenablage kopiert!
Configure the Red Hat OpenShift Pipelines tkn CLI to enable tab completion.
5.2.1. Enabling tab completion Link kopierenLink in die Zwischenablage kopiert!
After you install the tkn CLI, you can enable tab completion to automatically complete tkn commands or suggest options when you press Tab.
Prerequisites
-
You must have the
tknCLI tool installed. -
You must have
bash-completioninstalled on your local system.
Procedure
The following procedure enables tab completion for Bash.
Save the Bash completion code to a file:
tkn completion bash > tkn_bash_completion
$ tkn completion bash > tkn_bash_completionCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the file to
/etc/bash_completion.d/:sudo cp tkn_bash_completion /etc/bash_completion.d/
$ sudo cp tkn_bash_completion /etc/bash_completion.d/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, you can save the file to a local directory and source it from your
.bashrcfile instead.
Tab completion is enabled when you open a new terminal.
5.3. OpenShift Pipelines tkn reference Link kopierenLink in die Zwischenablage kopiert!
This section lists the basic tkn CLI commands.
5.3.1. Basic syntax Link kopierenLink in die Zwischenablage kopiert!
tkn [command or options] [arguments…]
5.3.2. Global options Link kopierenLink in die Zwischenablage kopiert!
--help, -h
5.3.3. Utility commands Link kopierenLink in die Zwischenablage kopiert!
5.3.3.1. tkn Link kopierenLink in die Zwischenablage kopiert!
Parent command for tkn CLI.
Example: Display all options
tkn
$ tkn
5.3.3.2. completion [shell] Link kopierenLink in die Zwischenablage kopiert!
Print shell completion code which must be evaluated to provide interactive completion. Supported shells are bash and zsh.
Example: Completion code for bash shell
tkn completion bash
$ tkn completion bash
5.3.3.3. version Link kopierenLink in die Zwischenablage kopiert!
Print version information of the tkn CLI.
Example: Check the tkn version
tkn version
$ tkn version
5.3.4. Pipelines management commands Link kopierenLink in die Zwischenablage kopiert!
5.3.4.1. pipeline Link kopierenLink in die Zwischenablage kopiert!
Manage pipelines.
Example: Display help
tkn pipeline --help
$ tkn pipeline --help
5.3.4.2. pipeline delete Link kopierenLink in die Zwischenablage kopiert!
Delete a pipeline.
Example: Delete the mypipeline pipeline from a namespace
tkn pipeline delete mypipeline -n myspace
$ tkn pipeline delete mypipeline -n myspace
5.3.4.3. pipeline describe Link kopierenLink in die Zwischenablage kopiert!
Describe a pipeline.
Example: Describe the mypipeline pipeline
tkn pipeline describe mypipeline
$ tkn pipeline describe mypipeline
5.3.4.4. pipeline list Link kopierenLink in die Zwischenablage kopiert!
Display a list of pipelines.
Example: Display a list of pipelines
tkn pipeline list
$ tkn pipeline list
5.3.4.5. pipeline logs Link kopierenLink in die Zwischenablage kopiert!
Display the logs for a specific pipeline.
Example: Stream the live logs for the mypipeline pipeline
tkn pipeline logs -f mypipeline
$ tkn pipeline logs -f mypipeline
5.3.4.6. pipeline start Link kopierenLink in die Zwischenablage kopiert!
Start a pipeline.
Example: Start the mypipeline pipeline
tkn pipeline start mypipeline
$ tkn pipeline start mypipeline
5.3.5. Pipeline run commands Link kopierenLink in die Zwischenablage kopiert!
5.3.5.1. pipelinerun Link kopierenLink in die Zwischenablage kopiert!
Manage pipeline runs.
Example: Display help
tkn pipelinerun -h
$ tkn pipelinerun -h
5.3.5.2. pipelinerun cancel Link kopierenLink in die Zwischenablage kopiert!
Cancel a pipeline run.
Example: Cancel the mypipelinerun pipeline run from a namespace
tkn pipelinerun cancel mypipelinerun -n myspace
$ tkn pipelinerun cancel mypipelinerun -n myspace
5.3.5.3. pipelinerun delete Link kopierenLink in die Zwischenablage kopiert!
Delete a pipeline run.
Example: Delete pipeline runs from a namespace
tkn pipelinerun delete mypipelinerun1 mypipelinerun2 -n myspace
$ tkn pipelinerun delete mypipelinerun1 mypipelinerun2 -n myspace
Example: Delete all pipeline runs from a namespace, except the five most recently executed pipeline runs
tkn pipelinerun delete -n myspace --keep 5
$ tkn pipelinerun delete -n myspace --keep 5
- 1
- Replace
5with the number of most recently executed pipeline runs you want to retain.
Example: Delete all pipelines
tkn pipelinerun delete --all
$ tkn pipelinerun delete --all
Starting with Red Hat OpenShift Pipelines 1.6, the tkn pipelinerun delete --all command does not delete any resources that are in the running state.
5.3.5.4. pipelinerun describe Link kopierenLink in die Zwischenablage kopiert!
Describe a pipeline run.
Example: Describe the mypipelinerun pipeline run in a namespace
tkn pipelinerun describe mypipelinerun -n myspace
$ tkn pipelinerun describe mypipelinerun -n myspace
5.3.5.5. pipelinerun list Link kopierenLink in die Zwischenablage kopiert!
List pipeline runs.
Example: Display a list of pipeline runs in a namespace
tkn pipelinerun list -n myspace
$ tkn pipelinerun list -n myspace
5.3.5.6. pipelinerun logs Link kopierenLink in die Zwischenablage kopiert!
Display the logs of a pipeline run.
Example: Display the logs of the mypipelinerun pipeline run with all tasks and steps in a namespace
tkn pipelinerun logs mypipelinerun -a -n myspace
$ tkn pipelinerun logs mypipelinerun -a -n myspace
5.3.6. Task management commands Link kopierenLink in die Zwischenablage kopiert!
5.3.6.1. task Link kopierenLink in die Zwischenablage kopiert!
Manage tasks.
Example: Display help
tkn task -h
$ tkn task -h
5.3.6.2. task delete Link kopierenLink in die Zwischenablage kopiert!
Delete a task.
Example: Delete mytask1 and mytask2 tasks from a namespace
tkn task delete mytask1 mytask2 -n myspace
$ tkn task delete mytask1 mytask2 -n myspace
5.3.6.3. task describe Link kopierenLink in die Zwischenablage kopiert!
Describe a task.
Example: Describe the mytask task in a namespace
tkn task describe mytask -n myspace
$ tkn task describe mytask -n myspace
5.3.6.4. task list Link kopierenLink in die Zwischenablage kopiert!
List tasks.
Example: List all the tasks in a namespace
tkn task list -n myspace
$ tkn task list -n myspace
5.3.6.5. task logs Link kopierenLink in die Zwischenablage kopiert!
Display task logs.
Example: Display logs for the mytaskrun task run of the mytask task
tkn task logs mytask mytaskrun -n myspace
$ tkn task logs mytask mytaskrun -n myspace
5.3.6.6. task start Link kopierenLink in die Zwischenablage kopiert!
Start a task.
Example: Start the mytask task in a namespace
tkn task start mytask -s <ServiceAccountName> -n myspace
$ tkn task start mytask -s <ServiceAccountName> -n myspace
5.3.7. Task run commands Link kopierenLink in die Zwischenablage kopiert!
5.3.7.1. taskrun Link kopierenLink in die Zwischenablage kopiert!
Manage task runs.
Example: Display help
tkn taskrun -h
$ tkn taskrun -h
5.3.7.2. taskrun cancel Link kopierenLink in die Zwischenablage kopiert!
Cancel a task run.
Example: Cancel the mytaskrun task run from a namespace
tkn taskrun cancel mytaskrun -n myspace
$ tkn taskrun cancel mytaskrun -n myspace
5.3.7.3. taskrun delete Link kopierenLink in die Zwischenablage kopiert!
Delete a TaskRun.
Example: Delete the mytaskrun1 and mytaskrun2 task runs from a namespace
tkn taskrun delete mytaskrun1 mytaskrun2 -n myspace
$ tkn taskrun delete mytaskrun1 mytaskrun2 -n myspace
Example: Delete all but the five most recently executed task runs from a namespace
tkn taskrun delete -n myspace --keep 5
$ tkn taskrun delete -n myspace --keep 5
- 1
- Replace
5with the number of most recently executed task runs you want to retain.
5.3.7.4. taskrun describe Link kopierenLink in die Zwischenablage kopiert!
Describe a task run.
Example: Describe the mytaskrun task run in a namespace
tkn taskrun describe mytaskrun -n myspace
$ tkn taskrun describe mytaskrun -n myspace
5.3.7.5. taskrun list Link kopierenLink in die Zwischenablage kopiert!
List task runs.
Example: List all the task runs in a namespace
tkn taskrun list -n myspace
$ tkn taskrun list -n myspace
5.3.7.6. taskrun logs Link kopierenLink in die Zwischenablage kopiert!
Display task run logs.
Example: Display live logs for the mytaskrun task run in a namespace
tkn taskrun logs -f mytaskrun -n myspace
$ tkn taskrun logs -f mytaskrun -n myspace
5.3.8. Condition management commands Link kopierenLink in die Zwischenablage kopiert!
5.3.8.1. condition Link kopierenLink in die Zwischenablage kopiert!
Manage Conditions.
Example: Display help
tkn condition --help
$ tkn condition --help
5.3.8.2. condition delete Link kopierenLink in die Zwischenablage kopiert!
Delete a Condition.
Example: Delete the mycondition1 Condition from a namespace
tkn condition delete mycondition1 -n myspace
$ tkn condition delete mycondition1 -n myspace
5.3.8.3. condition describe Link kopierenLink in die Zwischenablage kopiert!
Describe a Condition.
Example: Describe the mycondition1 Condition in a namespace
tkn condition describe mycondition1 -n myspace
$ tkn condition describe mycondition1 -n myspace
5.3.8.4. condition list Link kopierenLink in die Zwischenablage kopiert!
List Conditions.
Example: List Conditions in a namespace
tkn condition list -n myspace
$ tkn condition list -n myspace
5.3.9. Pipeline Resource management commands Link kopierenLink in die Zwischenablage kopiert!
5.3.9.1. resource Link kopierenLink in die Zwischenablage kopiert!
Manage Pipeline Resources.
Example: Display help
tkn resource -h
$ tkn resource -h
5.3.9.2. resource create Link kopierenLink in die Zwischenablage kopiert!
Create a Pipeline Resource.
Example: Create a Pipeline Resource in a namespace
tkn resource create -n myspace
$ tkn resource create -n myspace
This is an interactive command that asks for input on the name of the Resource, type of the Resource, and the values based on the type of the Resource.
5.3.9.3. resource delete Link kopierenLink in die Zwischenablage kopiert!
Delete a Pipeline Resource.
Example: Delete the myresource Pipeline Resource from a namespace
tkn resource delete myresource -n myspace
$ tkn resource delete myresource -n myspace
5.3.9.4. resource describe Link kopierenLink in die Zwischenablage kopiert!
Describe a Pipeline Resource.
Example: Describe the myresource Pipeline Resource
tkn resource describe myresource -n myspace
$ tkn resource describe myresource -n myspace
5.3.9.5. resource list Link kopierenLink in die Zwischenablage kopiert!
List Pipeline Resources.
Example: List all Pipeline Resources in a namespace
tkn resource list -n myspace
$ tkn resource list -n myspace
5.3.10. ClusterTask management commands Link kopierenLink in die Zwischenablage kopiert!
5.3.10.1. clustertask Link kopierenLink in die Zwischenablage kopiert!
Manage ClusterTasks.
Example: Display help
tkn clustertask --help
$ tkn clustertask --help
5.3.10.2. clustertask delete Link kopierenLink in die Zwischenablage kopiert!
Delete a ClusterTask resource in a cluster.
Example: Delete mytask1 and mytask2 ClusterTasks
tkn clustertask delete mytask1 mytask2
$ tkn clustertask delete mytask1 mytask2
5.3.10.3. clustertask describe Link kopierenLink in die Zwischenablage kopiert!
Describe a ClusterTask.
Example: Describe the mytask ClusterTask
tkn clustertask describe mytask1
$ tkn clustertask describe mytask1
5.3.10.4. clustertask list Link kopierenLink in die Zwischenablage kopiert!
List ClusterTasks.
Example: List ClusterTasks
tkn clustertask list
$ tkn clustertask list
5.3.10.5. clustertask start Link kopierenLink in die Zwischenablage kopiert!
Start ClusterTasks.
Example: Start the mytask ClusterTask
tkn clustertask start mytask
$ tkn clustertask start mytask
5.3.11. Trigger management commands Link kopierenLink in die Zwischenablage kopiert!
5.3.11.1. eventlistener Link kopierenLink in die Zwischenablage kopiert!
Manage EventListeners.
Example: Display help
tkn eventlistener -h
$ tkn eventlistener -h
5.3.11.2. eventlistener delete Link kopierenLink in die Zwischenablage kopiert!
Delete an EventListener.
Example: Delete mylistener1 and mylistener2 EventListeners in a namespace
tkn eventlistener delete mylistener1 mylistener2 -n myspace
$ tkn eventlistener delete mylistener1 mylistener2 -n myspace
5.3.11.3. eventlistener describe Link kopierenLink in die Zwischenablage kopiert!
Describe an EventListener.
Example: Describe the mylistener EventListener in a namespace
tkn eventlistener describe mylistener -n myspace
$ tkn eventlistener describe mylistener -n myspace
5.3.11.4. eventlistener list Link kopierenLink in die Zwischenablage kopiert!
List EventListeners.
Example: List all the EventListeners in a namespace
tkn eventlistener list -n myspace
$ tkn eventlistener list -n myspace
5.3.11.5. eventlistener logs Link kopierenLink in die Zwischenablage kopiert!
Display logs of an EventListener.
Example: Display the logs of the mylistener EventListener in a namespace
tkn eventlistener logs mylistener -n myspace
$ tkn eventlistener logs mylistener -n myspace
5.3.11.6. triggerbinding Link kopierenLink in die Zwischenablage kopiert!
Manage TriggerBindings.
Example: Display TriggerBindings help
tkn triggerbinding -h
$ tkn triggerbinding -h
5.3.11.7. triggerbinding delete Link kopierenLink in die Zwischenablage kopiert!
Delete a TriggerBinding.
Example: Delete mybinding1 and mybinding2 TriggerBindings in a namespace
tkn triggerbinding delete mybinding1 mybinding2 -n myspace
$ tkn triggerbinding delete mybinding1 mybinding2 -n myspace
5.3.11.8. triggerbinding describe Link kopierenLink in die Zwischenablage kopiert!
Describe a TriggerBinding.
Example: Describe the mybinding TriggerBinding in a namespace
tkn triggerbinding describe mybinding -n myspace
$ tkn triggerbinding describe mybinding -n myspace
5.3.11.9. triggerbinding list Link kopierenLink in die Zwischenablage kopiert!
List TriggerBindings.
Example: List all the TriggerBindings in a namespace
tkn triggerbinding list -n myspace
$ tkn triggerbinding list -n myspace
5.3.11.10. triggertemplate Link kopierenLink in die Zwischenablage kopiert!
Manage TriggerTemplates.
Example: Display TriggerTemplate help
tkn triggertemplate -h
$ tkn triggertemplate -h
5.3.11.11. triggertemplate delete Link kopierenLink in die Zwischenablage kopiert!
Delete a TriggerTemplate.
Example: Delete mytemplate1 and mytemplate2 TriggerTemplates in a namespace
tkn triggertemplate delete mytemplate1 mytemplate2 -n `myspace`
$ tkn triggertemplate delete mytemplate1 mytemplate2 -n `myspace`
5.3.11.12. triggertemplate describe Link kopierenLink in die Zwischenablage kopiert!
Describe a TriggerTemplate.
Example: Describe the mytemplate TriggerTemplate in a namespace
tkn triggertemplate describe mytemplate -n `myspace`
$ tkn triggertemplate describe mytemplate -n `myspace`
5.3.11.13. triggertemplate list Link kopierenLink in die Zwischenablage kopiert!
List TriggerTemplates.
Example: List all the TriggerTemplates in a namespace
tkn triggertemplate list -n myspace
$ tkn triggertemplate list -n myspace
5.3.11.14. clustertriggerbinding Link kopierenLink in die Zwischenablage kopiert!
Manage ClusterTriggerBindings.
Example: Display ClusterTriggerBindings help
tkn clustertriggerbinding -h
$ tkn clustertriggerbinding -h
5.3.11.15. clustertriggerbinding delete Link kopierenLink in die Zwischenablage kopiert!
Delete a ClusterTriggerBinding.
Example: Delete myclusterbinding1 and myclusterbinding2 ClusterTriggerBindings
tkn clustertriggerbinding delete myclusterbinding1 myclusterbinding2
$ tkn clustertriggerbinding delete myclusterbinding1 myclusterbinding2
5.3.11.16. clustertriggerbinding describe Link kopierenLink in die Zwischenablage kopiert!
Describe a ClusterTriggerBinding.
Example: Describe the myclusterbinding ClusterTriggerBinding
tkn clustertriggerbinding describe myclusterbinding
$ tkn clustertriggerbinding describe myclusterbinding
5.3.11.17. clustertriggerbinding list Link kopierenLink in die Zwischenablage kopiert!
List ClusterTriggerBindings.
Example: List all ClusterTriggerBindings
tkn clustertriggerbinding list
$ tkn clustertriggerbinding list
5.3.12. Hub interaction commands Link kopierenLink in die Zwischenablage kopiert!
Interact with Tekton Hub for resources such as tasks and pipelines.
5.3.12.1. hub Link kopierenLink in die Zwischenablage kopiert!
Interact with hub.
Example: Display help
tkn hub -h
$ tkn hub -h
Example: Interact with a hub API server
tkn hub --api-server https://api.hub.tekton.dev
$ tkn hub --api-server https://api.hub.tekton.dev
For each example, to get the corresponding sub-commands and flags, run tkn hub <command> --help.
5.3.12.2. hub downgrade Link kopierenLink in die Zwischenablage kopiert!
Downgrade an installed resource.
Example: Downgrade the mytask task in the mynamespace namespace to it’s older version
tkn hub downgrade task mytask --to version -n mynamespace
$ tkn hub downgrade task mytask --to version -n mynamespace
5.3.12.3. hub get Link kopierenLink in die Zwischenablage kopiert!
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
tkn hub get [pipeline | task] myresource --from tekton --version version
$ tkn hub get [pipeline | task] myresource --from tekton --version version
5.3.12.4. hub info Link kopierenLink in die Zwischenablage kopiert!
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
tkn hub info task mytask --from tekton --version version
$ tkn hub info task mytask --from tekton --version version
5.3.12.5. hub install Link kopierenLink in die Zwischenablage kopiert!
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
tkn hub install task mytask --from tekton --version version -n mynamespace
$ tkn hub install task mytask --from tekton --version version -n mynamespace
5.3.12.6. hub reinstall Link kopierenLink in die Zwischenablage kopiert!
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
tkn hub reinstall task mytask --from tekton --version version -n mynamespace
$ tkn hub reinstall task mytask --from tekton --version version -n mynamespace
5.3.12.7. hub search Link kopierenLink in die Zwischenablage kopiert!
Search a resource by a combination of name, kind, and tags.
Example: Search a resource with a tag cli
tkn hub search --tags cli
$ tkn hub search --tags cli
5.3.12.8. hub upgrade Link kopierenLink in die Zwischenablage kopiert!
Upgrade an installed resource.
Example: Upgrade the installed mytask task in the mynamespace namespace to a new version
tkn hub upgrade task mytask --to version -n mynamespace
$ tkn hub upgrade task mytask --to version -n mynamespace