Patch app spec inline

Merge-patch app spec without editing the CR; useful to bump targetRevision fast

argocd app patch <name> --patch '{"spec":{"source":{"targetRevision":"v2.1"}}}' --type merge

tool
argocd27 commands
tags
argocdgitopsk8stroubleshooting

More argocd commands

  • 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=true

    Set 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.yaml

    Export/import all apps, projects and settings for DR; cluster-secret aware

all 27 argocd commands