# List all applicationsargocd app list# Get application detailsargocd app get my-app# Set an override parameterargocd app set my-app -p image.tag=v1.0.1
# List all applicationsargocd app list# List with JSON outputargocd app list -o json# Filter by projectargocd app list -p my-project# Filter by labelargocd app list -l env=productionargocd app list -l 'app.kubernetes.io/instance notin (app1,app2)'
Output:
NAME CLUSTER NAMESPACE PROJECT STATUS HEALTH SYNCPOLICY CONDITIONSguestbook https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none>helm-guestbook https://kubernetes.default.svc default default Synced Healthy <none> <none>
# Get application detailsargocd app get my-app# Get with YAML outputargocd app get my-app -o yaml# Show application manifestsargocd app get my-app --show-manifests
Output:
Name: my-appProject: defaultServer: https://kubernetes.default.svcNamespace: defaultURL: https://cd.example.com/applications/my-appRepo: https://github.com/example/repo.gitTarget: mainPath: manifestsSyncWindow: Sync AllowedSync Policy: Automated (Prune)Sync Status: Synced to main (a1b2c3d)Health Status: HealthyGROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE Service default my-app-svc Synced Healthy service/my-app-svc createdapps Deployment default my-app Synced Healthy deployment.apps/my-app created
# Set Helm parametersargocd app set my-app -p image.tag=v2.0.0argocd app set my-app -p replicas=3# Set sync policyargocd app set my-app --sync-policy automated# Enable auto-pruneargocd app set my-app --auto-prune# Set projectargocd app set my-app --project my-project
Wait for application to reach a synced and healthy state.
# Wait for sync and healthargocd app wait my-app# Wait with timeoutargocd app wait my-app --timeout 300# Wait for health onlyargocd app wait my-app --health
# Show deployment historyargocd app history my-app# Show with JSON outputargocd app history my-app -o json
Output:
ID DATE REVISION1 2024-01-15 10:30:00 +0000 UTC main (a1b2c3d)2 2024-01-15 11:45:00 +0000 UTC main (d4e5f6g)3 2024-01-15 14:20:00 +0000 UTC main (g7h8i9j)
Rollback application to a previous deployed version.
# Rollback to previous versionargocd app rollback my-app# Rollback to specific history IDargocd app rollback my-app 2# Rollback with pruneargocd app rollback my-app 2 --prune