Interview Prep/GitOps & Argo CD/Rapid-Fire Commands

How do you see exactly what would change before syncing?

BeginnerConceptRapid-Fire Commands
Answer
argocd app diff web                      # Git vs live
argocd app diff web --local ./apps/web   # local working copy vs live
argocd app sync web --dry-run            # what the sync would do

argocd app diff exits with code 1 when differences exist, so it works as a CI gate.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Rapid-Fire Commands