argocd-app
Verified for current stable LTS
Argocd App Command: Preview App Sync
An engineer would use the command 'argocd app sync {{app_name}} --dry-run --prune' during a deployment planning session to simulate the synchronization of an application with the Git repository, allowing them to preview the changes and identify any resources that would be deleted without actually applying those changes. Exact CLI syntax to preview app sync using Argocd App.
When to use this: An engineer would use the command 'argocd app sync {{app_name}} --dry-run --prune' during a deployment planning session to simulate the synchronization of an application with the Git repository, allowing them to preview the changes and identify any resources that would be deleted without actually applying those changes.
Command Syntax
argocd app sync <app_name> --dry-run --prune argocd app sync <app_name> --dry-run --prune Command Breakdown
--dry-run- Command Option
- Tool-specific option used by this command invocation.
--prune- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to preview app 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
Argocd App Command: Delete Application
argocd app delete <app_name> Argocd App Command: List Applications argocd app list --output <json|yaml|wide> Argocd App Command: Get Application Details argocd app get <app_name> --output <json|yaml|wide> Argocd App Command: Deploy Application argocd app create <app_name> --repo <git_repo_url> --path <path/to/repo> --dest-server https://kubernetes.default.svc --dest-namespace <ns> Argocd App Command: Enable Auto Sync argocd app set <app_name> --sync-policy auto --auto-prune --self-heal