--- title: ArgoCD CLI modified: 2026-02-12 tags: - reference - gitops - argocd --- # ArgoCD CLI Command-line workflows for deploying and managing applications via [[argocd]]. ## CLI Commands ```bash argocd app list # List all applications and sync status argocd app get # Show app details, health, and resources argocd app diff # Preview what would change on sync argocd app sync # Apply pending changes argocd app sync apps # Sync the app-of-apps (picks up new Application manifests) ``` ## Login ```bash argocd login argocd.ops.eblu.me \ --username admin \ --password "$(op read 'op://vg6xf6vvfmoh5hqjjhlhbeoaie/srogeebssulhtb6tnqd7ls6qey/password')" ``` ## Branch-Testing Workflow Test changes from a feature branch before merging: ```bash # 1. Point the app at your branch argocd app set --revision # 2. Sync to deploy the branch version argocd app sync # 3. Test the changes... # 4. After merge, reset to main and sync argocd app set --revision main argocd app sync ``` ## Related - [[argocd]] — Service reference (URLs, credentials, sync policy) - [[apps]] — Full application registry - [[forgejo]] — Git source