Argo CD 3 cheatsheet

Argo CD 3: Applications

10 common Argo CD 3 tasks.

Create an application

Deploy a path of a Git repository into a namespace. Argo CD tracks the repository and compares it to the cluster.

argocd app create guestbook \
  --repo https://github.com/argoproj/argocd-example-apps.git \
  --path guestbook \
  --dest-server https://kubernetes.default.svc \
  --dest-namespace default

List applications

Show applications with their sync and health status.

argocd app list

Inspect an application

Show an application's resources, sync status and health.

argocd app get guestbook

See what would change

Compare the Git state with the live cluster before syncing.

argocd app diff guestbook

Sync an application

Apply the Git state to the cluster.

argocd app sync guestbook

Caution: Syncing changes the live cluster. Run argocd app diff first.

Turn on automated sync

Sync automatically when Git changes. prune deletes resources removed from Git, and selfHeal reverts manual changes.

argocd app set guestbook --sync-policy automated --auto-prune --self-heal

See deployment history

List the revisions that were synced.

argocd app history guestbook

Roll back

Return to an earlier deployed revision by its history ID. Disable auto-sync first or it will sync forward again.

argocd app rollback guestbook 3

Delete an application

Delete the application, and with --cascade its resources, from the cluster.

argocd app delete guestbook --cascade

Caution: Cascading deletes the application's Kubernetes resources, which can remove running workloads.

Read pod logs

Show logs from the application's pods.

argocd app logs guestbook --follow

Was this page helpful?