# What exit code does argocd app diff return by default when it finds a difference?

Argo CD, Easy (Beginner), CLI Usage. https://k8wiz.com/uquiz/what-exit-code-does-argocd-app-diff-return-by-default-when-it-finds-a-difference

- A. 0
- B. 1
- C. 2
- D. 20

**Answer:** 1

**Explanation:** argocd app diff returns 0 when there is no diff, 1 when it finds a diff and 2 on general errors, which makes it usable as a check in CI. The --diff-exit-code flag lets you choose another code, for example to tell a diff apart from the generic exit code 20 that CLI commands return on failure.
