Argo CD CLI¶
Install the CLI¶
Follow the official installation guide for your platform.
Get the Initial Admin Password¶
The initial admin password is stored in a Kubernetes secret. Retrieve it using kubectl:
kubectl --context=mini get secret argocd-initial-admin-secret \
-n argocd \
-o jsonpath='{.data.password}' | base64 -d && echo
Port-forward the Argo CD Server¶
Since argocd-server is a ClusterIP service, expose it locally before using the CLI:
Log In¶
Verify Cluster Connection¶
Expected output:
SERVER NAME VERSION STATUS MESSAGE PROJECT
https://kubernetes.default.svc in-cluster 1.33 Successful
in-cluster is the target Kubernetes cluster managed by Argo CD.