argocd commands
27 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 27 shown
-
argocd login argocd.example.com --username admin --password $(kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 -d)Authenticate argocd CLI using the initial admin secret
-
argocd app listShow all ArgoCD applications with sync/health status
-
argocd app sync myapp --pruneTrigger sync and prune removed resources
-
argocd app get myapp --refreshForce ArgoCD to re-fetch manifests from Git
-
argocd app diff myappShow what would change if the app were synced now
-
argocd app rollback myapp 3Rollback to revision 3 of the application history
-
argocd app create myapp --repo https://github.com/org/repo --path k8s/prod --dest-server https://kubernetes.default.svc --dest-namespace default --sync-policy automatedDeclaratively create an ArgoCD app with auto-sync
-
argocd app delete myapp --cascade=falseRemove ArgoCD app object without deleting Kubernetes resources
-
argocd cluster add my-k8s-contextRegister an external cluster using a kubeconfig context
-
argocd cluster listShow all clusters managed by ArgoCD
-
argocd app set myapp --kustomize-image myapp=myregistry/myapp:v1.2.3Override container image for a Kustomize app without changing Git
-
argocd app set myapp --sync-policy noneDisable automated sync for manual control
-
argocd app resources myappList all Kubernetes resources managed by an app
-
argocd app wait myapp --sync --health --timeout 120Block until app is synced and healthy (CI use case)
-
argocd proj create myproject --description 'Production apps' --dest 'https://kubernetes.default.svc,prod' --src 'https://github.com/org/*'Isolate apps in a project with source/destination restrictions
-
argocd app set <name> --helm-set image.tag=v2 --helm-set replicaCount=3Override Helm values live without touching Git; note: drifts from source until committed
-
argocd app set <name> -p key=val -p env=prodSet Kustomize/Helm parameter overrides via -p; modern: prefer Git-tracked overlays for audit
-
argocd app manifests <name> | kubectl diff -f -Diff Argo-rendered manifests against live cluster state before syncing
-
argocd appset list && argocd appset get <name> -o yamlList/get ApplicationSets and their generated child apps and generators
-
argocd repo add https://git.example.com/repo.git --username <id> --password $TOKENRegister HTTPS repo with creds; modern: --ssh-private-key-path for SSH-based access
-
argocd app patch <name> --patch '{"spec":{"source":{"targetRevision":"v2.1"}}}' --type mergeMerge-patch app spec without editing the CR; useful to bump targetRevision fast
-
argocd app terminate-op <name>Cancel an in-progress sync stuck on a hook or pending resource
-
argocd app actions run <name> restart --kind Deployment --resource-name <id>Trigger a Deployment rollout restart through Argo's resource actions
-
argocd proj windows add <name> --kind deny --schedule '0 0 * * *' --duration 8h --applications '*'Create a deny sync window to freeze deploys during off-hours; cron-based schedule
-
argocd app set <name> --sync-option Prune=true --sync-option ServerSideApply=trueSet sync options for safe prune and SSA; note: SSA fixes large-CRD apply conflicts
-
argocd admin export -n argocd > argo-backup.yaml # restore: argocd admin import -n argocd - < argo-backup.yamlExport/import all apps, projects and settings for DR; cluster-secret aware
-
argocd app sync <name> --resource apps:Deployment:<id>Sync only one resource by group:kind:name; isolates a fix without full app sync
no commands match — try a different search