Argo CD Cheatsheet

← All cheatsheets
$ argocd app list
IntermediateGitOpsUpdated October 2026

Install Argo CD, log in, create and sync applications, roll back, and debug drift from the command line.

Install and log in

kubectl create namespace argocdCreate the namespace for Argo CD
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yamlInstall the latest stable Argo CD
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -dGet the initial admin password
kubectl port-forward svc/argocd-server -n argocd 8080:443Open the UI and API on localhost:8080
argocd login localhost:8080 --username admin --insecureLog in with the CLI
argocd account update-passwordChange the admin password

Applications

argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace defaultCreate an app from a Git path
argocd app listList all applications and their status
argocd app get guestbookShow sync and health details
argocd app diff guestbookCompare live state with Git
argocd app sync guestbookSync the app to the Git revision
argocd app wait guestbook --healthWait until the app is healthy
argocd app history guestbookShow deployment history
argocd app rollback guestbook 3Roll back to history ID 3
argocd app set guestbook --sync-policy automated --self-heal --auto-pruneTurn on auto sync, self heal and pruning
argocd app delete guestbookDelete the app and its resources

Clusters, repos and projects

argocd cluster add my-contextRegister another cluster from your kubeconfig
argocd cluster listList registered clusters
argocd repo add https://github.com/org/repo.git --username git --password $TOKENAdd a private Git repo
argocd repo listList repositories
argocd proj listList projects
argocd proj create team-a -d https://kubernetes.default.svc,team-a -s https://github.com/org/*Create a project with allowed destination and source

Troubleshooting

argocd app get guestbook --hard-refreshForce a fresh read from Git
argocd app manifests guestbookPrint the rendered manifests
argocd app logs guestbookStream logs from app pods
argocd app terminate-op guestbookStop a stuck sync operation
kubectl -n argocd logs deploy/argocd-repo-serverCheck manifest generation errors
kubectl -n argocd logs statefulset/argocd-application-controllerCheck sync and health errors

Application manifest

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: guestbook
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/argoproj/argocd-example-apps.git
    targetRevision: HEAD
    path: guestbook
  destination:
    server: https://kubernetes.default.svc
    namespace: guestbook
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true