Sync a single resource

Sync only one resource by group:kind:name, so you can apply a fix without a full app sync

argocd app sync <name> --resource apps:Deployment:<id>

tool
argocd27 commands
tags
argocdgitopstroubleshootingk8s

More argocd commands

  • argocd login argocd.example.com --username admin --password $(kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath='{.data.password}' | base64 -d)

    Log in with the argocd CLI using the password from the initial admin secret

  • argocd app list

    Show all ArgoCD applications with their sync and health status

  • argocd app sync myapp --prune

    Start a sync and delete resources that are no longer in Git

  • argocd app get myapp --refresh

    Make ArgoCD fetch the manifests from Git again and compare them with the cluster

  • argocd app diff myapp

    Show what would change if you synced the app now

all 27 argocd commands