Tekton CLI
$ tkn Foundation Med Risktkn (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.
brew install tektoncd-cli tkn exposes -o json, --dry-run, and step-level pipelinerun logs directly over kubeconfig with minimal overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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--jsononpipeline start - Missing required params can trigger interactive prompts
--dry-run validates generated PipelineRun specs before submission, though executing pipelines triggers remote CI workloads with attached service accounts.
--dry-runpreviewsPipelineRunwithout cluster mutation
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
Dramatically simplifies multi-task CI/CD PipelineRun log aggregation and --last re-runs compared to kubectl.
- Ordered task/step logs and
--dry-runPipelineRunassembly
Continuous Delivery Foundation (CDF) graduated project (tektoncd/cli) under Apache-2.0.
- Official CDF
tektoncd/clirepository
Comprehensive per-command markdown docs in docs/cmd/ and built-in --help.
- Generated command manuals in
tektoncd/cli
Security, Auth & Guardrails
Reads Kubernetes cluster contexts from ~/.kube/config (-k / --kubeconfig).
CLI is free (Apache-2.0); triggered PipelineRuns consume Kubernetes cluster compute.
# 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
tkn pipelinerun list -n ci -o json
Retrieves recent Tekton PipelineRuns and their conditions in structured JSON.
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
--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 jsonacross list/describe/start plus--dry-runonpipeline start. - + Accepts full
PipelineRunJSON via--jsonfor deterministic automation. - + Aggregates ordered task and step logs cleanly across Kubernetes pods.
Caveats & Pitfalls
- ! Omitting required
-pparameters or-wworkspaces triggers interactive terminal prompts. - !
--showlogandlogs -fblock until the PipelineRun finishes.