Add private repo with credentials argocd
Register HTTPS repo with creds; modern: --ssh-private-key-path for SSH-based access
argocd repo add https://git.example.com/repo.git --username <id> --password $TOKEN
more argocd
all 27 commands →
Patch app spec inline
argocd app patch <name> --patch '{"spec":{"source":{"targetRevision":"v2.1"}}}' --type merge
Terminate stuck sync operation
argocd app terminate-op <name>
Run resource restart action
argocd app actions run <name> restart --kind Deployment --resource-name <id>
Add project sync window
argocd proj windows add <name> --kind deny --schedule '0 0 * * *' --duration 8h --applications '*'
Enable prune and server-side apply
argocd app set <name> --sync-option Prune=true --sync-option ServerSideApply=true