Argo Workflows CLI
$ argo Foundation Med Riskargo submits, lists, watches, retries, and fetches logs for Argo Workflows on Kubernetes. It supports --output json on get/list/submit, --log-format json, and headless execution via kubeconfig or ARGO_SERVER.
brew install argo argo get -o json and argo logs return workflow DAG states and step logs directly without loading extra MCP tool schemas.
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 (--output json) on get, list, and submit, plus --log-format json and --dry-run on lint/submit, though --watch and logs --follow block until completion.
- Supports
-o jsonand--log-format json - Supports
argo lintandsubmit --dry-run
Supports argo lint, submit --dry-run, and Kubernetes RBAC impersonation (--as), though submitting or terminating workflows executes cluster pods.
argo lintand--dry-runvalidate manifests before submission
Single static Go binary via Homebrew and GitHub Releases for macOS, Linux, and Windows; requires Argo Workflows installed in target cluster.
- Cross-platform binary via
brew install argo
Far friendlier than raw kubectl for DAG step statuses, artifact/log aggregation, retry, and resubmit.
- Aggregates multi-pod DAG step states and logs
CNCF graduated project (argoproj/argo-workflows) maintained under Apache-2.0.
- CNCF graduated
argoproj/argo-workflowsrepository
Auto-generated CLI docs for every subcommand at argo-workflows.readthedocs.io.
- Complete CLI reference documentation
Security, Auth & Guardrails
Authenticates via ~/.kube/config (--kubeconfig) or ARGO_SERVER + ARGO_TOKEN environment variables.
CLI is free (Apache-2.0); submitted workflows consume cluster compute.
# Argo Workflows CLI (argo) Agent Rules - Always pass `-n <namespace>` explicitly on `submit`, `get`, `list`, and `logs`. - Omit `--watch` / `--follow` in agent calls unless bounded; poll `argo get -o json` instead. - Never run `argo delete --all` or `argo terminate` on production workflows without approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
argo get my-workflow-abc12 -n argo -o json
Retrieves workflow phase, node statuses, and parameters in JSON.
argo logs my-workflow-abc12 -n argo --log-format json
Returns structured JSON log entries for completed or running workflow pods.
Controlled Writes & Previews
argo submit ./workflow.yaml -n argo -p revision=main -o json
Submits the workflow with explicit parameters and returns the created Workflow JSON immediately.
Strengths for Agents
- +
-o jsonworks consistently acrossget,list, andsubmit, plus--log-format jsonon logs. - +
argo lintand--dry-runcatch invalid workflow templates before submission. - + CNCF graduated project with first-class DAG status and log aggregation.
Caveats & Pitfalls
- !
--watchandlogs --followblock indefinitely until workflows finish. - ! Connecting to
ARGO_SERVERbehind HTTP/1.1 proxies requires--argo-http1.