Skip to content
/ cli Public
forked from tektoncd/cli

A CLI for interacting with Tekton!

License

Notifications You must be signed in to change notification settings

mnitta/cli

This branch is 1450 commits behind tektoncd/cli:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

65442f9 ยท Nov 29, 2019
Nov 18, 2019
Nov 4, 2019
Nov 28, 2019
Jul 4, 2019
Nov 29, 2019
Nov 8, 2019
Nov 15, 2019
Jul 3, 2019
Nov 14, 2019
Jul 24, 2019
Sep 4, 2019
Oct 31, 2019
Nov 8, 2019
Nov 8, 2019
Apr 18, 2019
Aug 22, 2019
Apr 18, 2019
Nov 20, 2019
Nov 7, 2019
Nov 20, 2019
Nov 29, 2019
Apr 18, 2019
Nov 15, 2019
Nov 26, 2019

Repository files navigation

Tekton Pipelines cli

Go Report Card

The Tekton Pipelines cli project provides a CLI for interacting with Tekton!

Getting Started

Installing tkn

Download the latest binary executable for your operating system:

  • Mac OS X

    • tektoncd-cli can be installed as a brew tap:
    brew tap tektoncd/tools
    brew install tektoncd/tools/tektoncd-cli
    # Get the tar.xz
    curl -LO https://github.com/tektoncd/cli/releases/download/v0.5.0/tkn_0.5.0_Darwin_x86_64.tar.gz
    # Extract tkn to your PATH (e.g. /usr/local/bin)
    sudo tar xvzf tkn_0.5.0_Darwin_x86_64.tar.gz -C /usr/local/bin tkn
  • Windows

    • Uncompress the zip file
    • Add the location of where the executable is to your Path by opening Control Panel>System and Security>System>Advanced System Settings
    • Click on Environment Variables, select the Path variable, and click Edit
    • Click New and add the location of the uncompressed zip to the Path
    • Finish by clicking Ok
  • Linux AMD 64

    # Get the tar.xz
    curl -LO https://github.com/tektoncd/cli/releases/download/v0.5.0/tkn_0.5.0_Linux_x86_64.tar.gz
    # Extract tkn to your PATH (e.g. /usr/local/bin)
    sudo tar xvzf tkn_0.5.0_Linux_x86_64.tar.gz -C /usr/local/bin/ tkn
  • Linux ARM 64

    # Get the tar.xz
    curl -LO https://github.com/tektoncd/cli/releases/download/v0.5.0/tkn_0.5.0_Linux_arm64.tar.gz
    # Extract tkn to your PATH (e.g. /usr/local/bin)
    sudo tar xvzf tkn_0.5.0_Linux_arm64.tar.gz -C /usr/local/bin/ tkn

    If you are running on any of the following rpm based distros:

    • Fedora30
    • Fedora31
    • Centos7
    • Centos8
    • EPEL
    • RHEL8

    you would be able to use @chmouel's unofficial copr package repository by running the following commands:

    dnf copr enable chmouel/tektoncd-cli
    dnf install tektoncd-cli
  • Source install

    If you have go installed, and you want to compile the CLI from source you can checkout the Git repository and run the following commands:

export GO111MODULE=on
make bin/tkn

This will output the tkn binary in bin/tkn

tkn as a kubectl plugin

kubectl will find any binary named kubectl-* on your PATH and consider it as a plugin. After installing tkn, create a link as kubectl-tkn

$ ln -s /usr/local/bin/tkn /usr/local/bin/kubectl-tkn

kubectl will find any binary named kubectl-* on your PATH and consider it as a plugin

$ ./kubectl plugin list
/usr/local/bin/kubectl-tkn

Useful Commands

The following commands help you understand and effectively use the Tekton CLI:

  • tkn help: Displays a list of the commands with helpful information.
  • tkn completion: Outputs a BASH or ZSH completion script for tkn to allow command completion with Tab.
  • tkn version: Outputs the cli version.
  • tkn pipeline: Parent command of the Pipeline command group.
  • tkn pipelinerun: Parent command of the Pipelinerun command group.
  • tkn task: Parent command of the Task command group.
  • tkn taskrun: Parent command of the Taskrun command group.
  • tkn clustertask: Parent command of the ClusterTask command group.
  • tkn resource: Parent command of the Resource command group.
  • tkn condition: Parent command of the Condition command group.

For every tkn command, you can use -h or --help flags to display specific help for that command.

Want to contribute

We are so excited to have you!

About

A CLI for interacting with Tekton!

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.0%
  • Shell 3.6%
  • Other 0.4%