Maven / ArgoCD interview questions
What is the ArgoCD CLI and what are the most common commands used day-to-day?
The ArgoCD CLI (argocd) is a command-line tool for interacting with the ArgoCD API Server. It is the primary interface for operators who prefer the terminal over the UI and is also used in CI/CD pipelines for triggering or waiting on syncs.
Before using the CLI, you must log in:
argocd login <argocd-server> --username admin --password <password>
# Use --grpc-web if behind an HTTP proxy or load balancerCommon day-to-day commands:
| Command | Purpose |
|---|---|
argocd app list | List all Applications with sync and health status |
argocd app get <app> | Show detailed status, sync info, and resource tree for an Application |
argocd app sync <app> | Trigger a sync; add --prune to allow pruning, --dry-run to preview |
argocd app wait <app> | Block until the Application reaches a target health/sync state (useful in CI) |
argocd app diff <app> | Show the diff between live cluster state and Git desired state |
argocd app rollback <app> <id> | Roll back to a specific sync history revision |
argocd app set <app> --helm-set key=val | Override Helm values at the Application level without changing Git |
argocd cluster list | List all registered clusters |
argocd proj list | List all AppProjects |
In CI/CD pipelines, the typical pattern is: build image → push image → update Git tag → argocd app wait <app> --health to block the pipeline until ArgoCD confirms the deployment is healthy.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
