Skip to main content

Argo CD Commands

171 words·
Argo CD Commands
Table of Contents

Login
#

Fetch Admin PW from K8sSecret
#

# Default user
admin

# Fetch admin pw
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

CLI Login
#

# Login to ArgoCD instance
argocd login argocd.jklug.work --grpc-web

# Default user
admin

# PW from secret



Add Host Keys
#

# Add GitLab host keys
argocd cert add-ssh --batch gitlab.jklug.work

# Shell output:
Enter SSH known hosts entries, one per line. Press CTRL-D when finished.
# Restart ArgoCD
kubectl -n argocd rollout restart deploy/argocd-repo-server



Repositories & Projects
#

List GitLab Repositories
#

# List GitLab repositories
argocd repo list

List & Delete Projects
#

# List ArgoCD projects
argocd proj list
# Delete ArgoCD project
argocd proj delete project-name



ApplicationSet and Apps
#

List ApplicationSets
#

# List ArgoCD ApplicationSets
kubectl -n argocd get applicationsets

Delete ApplicationSet
#

# Delete ArgoCD ApplicationSet
kubectl -n argocd delete applicationset applicationset-name

List Applications
#

# Verify ArgoCD Applications
argocd app list

List Application Details
#

# List application details
argocd app get argocd/app-name