Argocd Sync Application
argocd_sync_applicationBring an out-of-sync Argo CD application back in line with its Git-defined state; optionally prune, force, dry-run, or wait for completion.
Instructions
Sync an application. destructive because prune and force can delete or recreate resources.
Returns the started operation; with wait=True, the final one. revision override needs the
applications, override RBAC permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Application name; accepts namespace/name for apps-in-any-namespace | |
| wait | No | Wait for the operation to finish | |
| force | No | Force apply (recreate on conflict) | |
| prune | No | Delete resources no longer in Git | |
| dry_run | No | Preview only; change nothing | |
| project | No | Project; with it a missing app is 404 and a wrong-project app is 403 | |
| revision | No | Sync to this revision (needs override RBAC) | |
| resources | No | Scope to [group:]kind:name[/namespace] selectors | |
| retry_limit | No | Retry attempts on failure | |
| sync_options | No | Free-form sync options, e.g. ServerSideApply=true | |
| app_namespace | No | Override appNamespace; defaults to ARGOCD_APP_NAMESPACE | |
| timeout_seconds | No | Wait timeout in seconds | |
| apply_out_of_sync_only | No | Apply only out-of-sync resources |