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

Argo CD CLI

$ argocd Foundation High Risk
CNCF / Argo Project · Cloud & Infra · Apache-2.0 · macos / linux / windows

Argo CD CLI (argocd) manages declarative GitOps applications on Kubernetes, providing -o json (--output json) across app list/get, live-vs-Git argocd app diff, --dry-run sync previews, and ARGOCD_AUTH_TOKEN headless auth.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install argocd
CLI vs MCP Decision CLI Preferred vs MCP

argocd gives exact -o json app status and app diff output directly against the Argo CD gRPC/REST server.

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 22 / 25

Consistent -o json on app list/get/history and built-in --dry-run on sync.

  • Supports -o json, app diff, and sync --dry-run
Trust & Safety 21 / 25

argocd app diff + --dry-run + Argo CD RBAC tokens provide strong GitOps safety gates before live cluster syncs.

  • app diff, --dry-run, and server-enforced Argo CD RBAC
Setup & Portability 14 / 15

Single Go binary via Homebrew or GitHub releases across macOS, Linux, and Windows.

  • Single Go binary via brew install argocd
Utility & Efficiency 13 / 15

Cleanly separates GitOps read diagnostics (list, diff) from explicit sync triggers.

  • Direct gRPC/HTTP control over GitOps applications
Maintenance & Lineage 10 / 10

CNCF graduated project (argoproj/argo-cd) with active enterprise adoption.

  • Official CNCF argoproj/argo-cd under Apache-2.0
Docs & Verifiability 8 / 10

Thorough argo-cd.readthedocs.io command reference and --help.

  • Complete CLI command reference

Security, Auth & Guardrails

Auth Modes
Env API Key Config File OAuth Browser
Credential Storage

Stores server tokens and contexts in ~/.config/argocd/config, or reads ARGOCD_AUTH_TOKEN and ARGOCD_SERVER.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% open-source (Apache-2.0); syncing apps deploys workloads onto your Kubernetes clusters.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Argo CD CLI Agent Rules
- Run `argocd app list -o json` and `argocd app diff <app>` before any sync.
- Always test `argocd app sync --dry-run` first; never pass `--prune` or `argocd app delete` without explicit approval.
- Use RBAC-scoped `ARGOCD_AUTH_TOKEN` tokens rather than admin credentials.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Argo CD applications in JSON
argocd app list -o json

Returns sync status, health status, target revision, and destination cluster as JSON.

Diff Git target revision against live cluster state
argocd app diff my-app

Displays manifest differences between desired Git state and live Kubernetes resources.

Controlled Writes & Previews

Preview an application sync with --dry-run
argocd app sync my-app --dry-run

Runs a server-side dry-run sync without modifying live resources.

Strengths for Agents

  • + -o json on app list/get gives rich sync and health telemetry.
  • + argocd app diff and argocd app sync --dry-run enable safe pre-sync verification.
  • + Headless token auth via ARGOCD_AUTH_TOKEN and ARGOCD_SERVER.

Caveats & Pitfalls

  • ! Behind HTTP proxies or ALBs, --grpc-web is frequently required to avoid gRPC connection hangs.
  • ! argocd app diff returns exit code 1 when differences exist, which can look like a command failure in naive scripts.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI