Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Tekton CLI

$ tkn Foundation Med Risk
Tekton / CDF · Cloud & Infra · Apache-2.0 · macos / linux / windows

tkn (tektoncd-cli) manages Tekton Pipelines, Tasks, PipelineRuns, and TaskRuns on Kubernetes. It supports -o json across list/get/start commands, --dry-run on pipeline start, and non-interactive parameter passing via -p and --json.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install tektoncd-cli
CLI vs MCP Decision CLI Preferred vs MCP

tkn exposes -o json, --dry-run, and step-level pipelinerun logs directly over kubeconfig with minimal overhead.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports -o json across list, describe, and start, plus --dry-run and --json spec input, though omitting -p or --workspace triggers interactive survey prompts.

  • Supports -o json, --dry-run, and --json on pipeline start
  • Missing required params can trigger interactive prompts
Trust & Safety 20 / 25

--dry-run validates generated PipelineRun specs before submission, though executing pipelines triggers remote CI workloads with attached service accounts.

  • --dry-run previews PipelineRun without cluster mutation
Setup & Portability 14 / 15

Single static Go binary via Homebrew and GitHub Releases on macOS, Linux, and Windows; requires Tekton CRDs installed on the cluster.

  • Cross-platform binary via brew install tektoncd-cli
Utility & Efficiency 13 / 15

Dramatically simplifies multi-task CI/CD PipelineRun log aggregation and --last re-runs compared to kubectl.

  • Ordered task/step logs and --dry-run PipelineRun assembly
Maintenance & Lineage 10 / 10

Continuous Delivery Foundation (CDF) graduated project (tektoncd/cli) under Apache-2.0.

  • Official CDF tektoncd/cli repository
Docs & Verifiability 9 / 10

Comprehensive per-command markdown docs in docs/cmd/ and built-in --help.

  • Generated command manuals in tektoncd/cli

Security, Auth & Guardrails

Auth Modes
Config File Service Account
Credential Storage

Reads Kubernetes cluster contexts from ~/.kube/config (-k / --kubeconfig).

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

CLI is free (Apache-2.0); triggered PipelineRuns consume Kubernetes cluster compute.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Tekton CLI (tkn) Agent Rules
- Always pass `-n <namespace>` and `-c <context>` explicitly.
- Pass all required `-p key=value` and `--workspace` flags plus `--dry-run` first so `tkn pipeline start` never prompts interactively.
- Avoid `-f` / `--showlog` streaming flags unless bounded; poll `tkn pipelinerun describe -o json` instead.

Agent-Ready Command Recipes

Safe Read-Only Queries

List PipelineRuns in JSON
tkn pipelinerun list -n ci -o json

Retrieves recent Tekton PipelineRuns and their conditions in structured JSON.

Fetch logs from a PipelineRun
tkn pipelinerun logs my-run-123 -n ci

Prints ordered task and step logs for a specific PipelineRun without waiting when already finished.

Controlled Writes & Previews

Preview a PipelineRun manifest with --dry-run
tkn pipeline start build-app -n ci -p branch=main --dry-run -o json

Generates the exact PipelineRun JSON payload without creating or executing the run in the cluster.

Strengths for Agents

  • + Supports -o json across list/describe/start plus --dry-run on pipeline start.
  • + Accepts full PipelineRun JSON via --json for deterministic automation.
  • + Aggregates ordered task and step logs cleanly across Kubernetes pods.

Caveats & Pitfalls

  • ! Omitting required -p parameters or -w workspaces triggers interactive terminal prompts.
  • ! --showlog and logs -f block until the PipelineRun finishes.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI