> For the complete documentation index, see [llms.txt](https://ibm-developer.gitbook.io/cloudpakforapplications-appmod/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ibm-developer.gitbook.io/cloudpakforapplications-appmod/workshop-07-07-2020/day-3/tekton-lab/tekton-setup.md).

# Setup

This section is broken up into the following steps:

1. [Log into OpenShift](/cloudpakforapplications-appmod/workshop-07-07-2020/day-3/tekton-lab/tekton-setup.md#2-log-into-openshift)
2. [Install Tekton CLI](/cloudpakforapplications-appmod/workshop-07-07-2020/day-3/tekton-lab/tekton-setup.md#3-install-tekton-cli)

## 1. Log into OpenShift

You will need to authenticate with the OpenShift console before continuing.

From the [IBM Cloud Home Page](https://cloud.ibm.com), make sure you are in the IBM Cloud account where your cluster is located. Select from the dropdown menu in the upper right.

![correct account](https://1008744720-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1Bh2a26msY5M4vW3R9%2Fsync%2F6e8f88d5a9eebafb6dca95506065fcb86362db90.png?generation=1591059514797428\&alt=media)

Next, find your clusters by navigating to **Kubernetes->Clusters** in the upper lefthand menu

![Kubernetes Menu](https://1008744720-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1Bh2a26msY5M4vW3R9%2Fsync%2Ff355295f270717ed5bef42cc394c3a8bc0e4b9ac.png?generation=1591059515701437\&alt=media)

Select your cluster to get to the cluster home page. Then, select the **OpenShift Web Console** Button

![cluster homepage](https://1008744720-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1Bh2a26msY5M4vW3R9%2Fsync%2Fd6a3f30e7890f833e309cfd11b5a61bd5f148f1b.png?generation=1591059517980195\&alt=media)

From the OpenShift console, in the upper righthand menu, select **Copy Login Command**

![copy login command](https://1008744720-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1Bh2a26msY5M4vW3R9%2Fsync%2F4105df377d3778a04e039cebe589be7ea61b6e49.png?generation=1591059516634204\&alt=media)

Follow the instructions including logging in using your IBM ID to get the command to login. Run the command in your IBM Cloud Shell environment

```
oc login --token=... --server=...
```

## 2. Install Tekton CLI

Run the commands below to install `tkn` the Tekton CLI that we will be using in this lab

```
curl -LO https://github.com/tektoncd/cli/releases/download/v0.9.0/tkn_0.9.0_Linux_x86_64.tar.gz
```

```
mkdir ~/tknbin
```

```
tar xvzf tkn_0.9.0_Linux_x86_64.tar.gz -C ~/tknbin tkn
```

```
echo 'export PATH=$HOME/tknbin:$PATH' > .bash_profile
```

```
source .bash_profile
```

```
tkn version
```
