![Forrest logo](/images/logo.png)
argocd-app:tldr:4137f
argocd-app: Preview app synchronization without affecting cluster.
$ argocd app sync ${app_name} --dry-run --prune
try on your machine
This command is related to the Argo CD application synchronization process. Let's break it down:
argocd
is the command to interact with the Argo CD CLI (Command-Line Interface).app
is a subcommand that refers to the Argo CD application.sync
is the action to synchronize the application state with the desired state defined in the Git repository.${app_name}
is a placeholder for the name of the application you want to sync. You should replace it with the actual name of your application.--dry-run
is an optional flag that performs a simulation of the sync operation without actually making any changes. It allows you to see what changes will be applied without modifying the application's state.--prune
is an optional flag that enables pruning. It means that any resources in the application's state that are not present in the desired state will be deleted. This ensures that the application only contains the resources defined in the Git repository.
In summary, this command simulates the synchronization of an Argo CD application called ${app_name}
, showing what changes would be made without actually modifying anything. Additionally, it allows for the removal of any resources that exist in the application but are not defined in the Git repository.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.