argocd-app Verified for current stable LTS

Argocd App Command: Enable Auto Sync

An engineer would use the 'argocd app set {{app_name}} --sync-policy auto --auto-prune --self-heal' command when configuring a Kubernetes application in Argo CD to automatically synchronize with the git repository and ensure that any drift from the desired state is corrected without manual intervention. Exact CLI syntax to enable auto sync using Argocd App.

When to use this: An engineer would use the 'argocd app set {{app_name}} --sync-policy auto --auto-prune --self-heal' command when configuring a Kubernetes application in Argo CD to automatically synchronize with the git repository and ensure that any drift from the desired state is corrected without manual intervention.

Command Syntax

argocd app set <app_name> --sync-policy auto --auto-prune --self-heal

Command Breakdown

--sync-policy
Command Option
Tool-specific option used by this command invocation.
--auto-prune
Command Option
Tool-specific option used by this command invocation.
--self-heal
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to enable auto sync using Argocd App.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Argocd App directory