How do you create an Application from the CLI with auto-sync?
BeginnerConceptRapid-Fire Commands
Answer
argocd app create web \
--repo https://github.com/org/cfg.git --path apps/web/overlays/dev \
--dest-server https://kubernetes.default.svc --dest-namespace web \
--project team-a --sync-policy automated --auto-prune --self-heal \
--sync-option CreateNamespace=true
More on Rapid-Fire Commands
How do you get the initial admin password and log in from the CLI?BeginnerHow do you see exactly what would change before syncing?BeginnerHow do you force Argo CD to re-render manifests ignoring its cache?BeginnerHow do you wait in a pipeline until an app is synced and healthy?IntermediateHow do you register a new cluster and list clusters?BeginnerHow do you stop a stuck sync operation?Intermediate