Add a project sync window
Block syncs every night from 00:00 for 8 hours, so nobody deploys while everyone sleeps
argocd proj windows add <name> --kind deny --schedule '0 0 * * *' --duration 8h --applications '*'
- tool
- argocd27 commands
More argocd commands
-
argocd app set <name> --sync-option Prune=true --sync-option ServerSideApply=trueSet sync options for prune and SSA; SSA fixes apply conflicts with large CRDs
-
argocd admin export -n argocd > argo-backup.yaml # restore: argocd admin import -n argocd - < argo-backup.yamlExport all apps, projects and settings, including cluster secrets, for disaster recovery; the comment shows how to import them back
-
argocd app sync <name> --resource apps:Deployment:<id>Sync only one resource by group:kind:name, so you can apply a fix without a full app sync
-
argocd login argocd.example.com --username admin --password $(kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 -d)Log in with the argocd CLI using the password from the initial admin secret
-
argocd app listShow all ArgoCD applications with their sync and health status