Argo CD Cheat Sheet

GitOps continuous delivery — sync applications from Git to the cluster and keep drift under control.

Kubernetes3 sections · 23 commands
⌘K

Applications

11
argocd app list

Applications managed by the server

argocd app get APP

Status, health, sync state

argocd app create APP --repo URL --path manifests --dest-namespace NS --dest-server SERVER

Register an app

argocd app sync APP

Trigger a sync

argocd app sync APP --prune

Sync and delete removed resources

argocd app sync APP --force

Skip pre-sync hooks

argocd app diff APP

Live vs Git drift

argocd app delete APP

Remove the app (and --cascade)

argocd app set APP --auto-sync

Enable automatic sync

argocd app history APP

Sync history

argocd app rollback APP ID

Roll back to a sync

Auth & Access

7
argocd login HOST

Log in to the argocd-server

argocd account update-password

Change the current password

argocd relogin

Refresh the session

argocd cluster add CONTEXT

Register a cluster from kubeconfig

argocd cluster list

Registered clusters

argocd repo list

Git repositories with credentials

argocd repo add URL --username U --password P

Add a private repo

Troubleshooting

5
argocd app get APP --show-operation

Ongoing operation details

argocd app resources APP

Resources the app owns

kubectl get app APP -n argocd -o yaml

Application CR full state

kubectl -n argocd logs deploy/argocd-application-controller

Controller logs

argocd app set APP --sync-policy automated

Enable auto-sync from CLI