Create an application from the CLI

Create an ArgoCD app with automatic sync from one command

argocd app create myapp --repo https://github.com/org/repo --path k8s/prod --dest-server https://kubernetes.default.svc --dest-namespace default --sync-policy automated

tool
argocd27 commands
tags
argocdci

More argocd commands

  • argocd app delete myapp --cascade=false

    Remove the ArgoCD app object and leave its Kubernetes resources running

  • argocd cluster add my-k8s-context

    Register an external cluster from a kubeconfig context

  • argocd cluster list

    Show all clusters that ArgoCD manages

  • argocd app set myapp --kustomize-image myapp=myregistry/myapp:v1.2.3

    Change the container image of a Kustomize app without a commit to Git

  • argocd app set myapp --sync-policy none

    Turn off automatic sync so you can sync by hand

all 27 argocd commands