1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/op-installing-pipelines-as-code-cli.adoc

61 lines
2.2 KiB
Plaintext

// This module is included in the following assembly:
//
// *cicd/pipelines/using-pipelines-as-code.adoc
:_content-type: PROCEDURE
[id="installing-pipelines-as-code-cli_{context}"]
= Installing {pac} CLI
[role="_abstract"]
Cluster administrators can use the `tkn-pac` CLI tool on local machines or as containers for testing. The `tkn-pac` CLI tool is installed automatically when you install the `tkn` CLI for {pipelines-title}.
You can also install the `tkn-pac` `tkn-pac` version `0.23.1` binaries for the supported platforms:
* link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.23.1/tkn-pac-linux-amd64-0.23.1.tar.gz[Linux (x86_64, amd64)]
* link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.23.1/tkn-pac-linux-s390x-0.23.1.tar.gz[Linux on IBM Z and LinuxONE (s390x)]
* link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.23.1/tkn-pac-linux-ppc64le-0.23.1.tar.gz[Linux on IBM Power Systems (ppc64le)]
* link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.23.1/tkn-pac-macos-amd64-0.23.1.tar.gz[Mac]
* link:https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/0.23.1/tkn-pac-windows-amd64-0.23.1.zip[Windows]
+
[NOTE]
====
The binaries are compatible with `tkn` version `0.23.1`.
====
// In addition, you can install `tkn-pac` using the following methods:
// [CAUTION]
// ====
// The `tkn-pac` CLI tool available using these methods is _not updated regularly_.
// ====
// * Install on Linux or Mac OS using the `brew` package manager:
// +
// [source,terminal]
// ----
// $ brew install openshift-pipelines/pipelines-as-code/tektoncd-pac
// ----
// +
// You can upgrade the package by running the following command:
// +
// [source,terminal]
// ----
// $ brew upgrade openshift-pipelines/pipelines-as-code/tektoncd-pac
// ----
// * Install as a container using `podman`:
// +
// [source,terminal]
// ----
// $ podman run -e KUBECONFIG=/tmp/kube/config -v ${HOME}/.kube:/tmp/kube \
// -it quay.io/openshift-pipeline/pipelines-as-code tkn-pac help
// ----
// +
// You can also use `docker` as a substitute for `podman`.
// * Install from the GitHub repository using `go`:
// +
// [source,terminal]
// ----
// $ go install github.com/openshift-pipelines/pipelines-as-code/cmd/tkn-pac
// ----