> 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](/files/-M8mXMZ0sbJzQEy89BoN)

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

![Kubernetes Menu](/files/-M8mXMZ1hof98kjL7AkD)

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

![cluster homepage](/files/-M8mXMZ2gl5zIXBTt7tI)

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

![copy login command](/files/-M8mXMZ3iuk7FrreP6o4)

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
```
