Argo CD CLI
$ argocd Foundation High RiskArgo 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.
brew install argocd argocd gives exact -o json app status and app diff output directly against the Argo CD gRPC/REST server.
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
Consistent -o json on app list/get/history and built-in --dry-run on sync.
- Supports
-o json,app diff, andsync --dry-run
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
Single Go binary via Homebrew or GitHub releases across macOS, Linux, and Windows.
- Single Go binary via
brew install argocd
Cleanly separates GitOps read diagnostics (list, diff) from explicit sync triggers.
- Direct gRPC/HTTP control over GitOps applications
CNCF graduated project (argoproj/argo-cd) with active enterprise adoption.
- Official CNCF
argoproj/argo-cdunder Apache-2.0
Thorough argo-cd.readthedocs.io command reference and --help.
- Complete CLI command reference
Security, Auth & Guardrails
Stores server tokens and contexts in ~/.config/argocd/config, or reads ARGOCD_AUTH_TOKEN and ARGOCD_SERVER.
100% open-source (Apache-2.0); syncing apps deploys workloads onto your Kubernetes clusters.
# 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
argocd app list -o json
Returns sync status, health status, target revision, and destination cluster as JSON.
argocd app diff my-app
Displays manifest differences between desired Git state and live Kubernetes resources.
Controlled Writes & Previews
--dry-run argocd app sync my-app --dry-run
Runs a server-side dry-run sync without modifying live resources.
Strengths for Agents
- +
-o jsononapp list/getgives rich sync and health telemetry. - +
argocd app diffandargocd app sync --dry-runenable safe pre-sync verification. - + Headless token auth via
ARGOCD_AUTH_TOKENandARGOCD_SERVER.
Caveats & Pitfalls
- ! Behind HTTP proxies or ALBs,
--grpc-webis frequently required to avoid gRPC connection hangs. - !
argocd app diffreturns exit code 1 when differences exist, which can look like a command failure in naive scripts.