Accessing the ArgoCD UI and CLI
What you'll learn: How to access ArgoCD's web interface and set up the command-line tool for managing GitOps deployments.
Why Two Access Methods Matter
Now that ArgoCD is installed on your Kubernetes cluster, you need ways to interact with it. Think of this like having both a graphical file manager and a terminal on your computer—each serves different use cases. The UI gives you visual dashboards and quick status checks, while the CLI enables automation, scripting, and faster bulk operations.
Accessing the Web UI
By default, ArgoCD's API server runs as a Kubernetes service. To access it from your local machine, you'll typically use port-forwarding:
kubectl port-forward svc/argocd-server -n argocd 8080:443
Now navigate to https://localhost:8080 in your browser. You'll see a login screen.
The default username is admin. To retrieve the auto-generated password:
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
For production environments, you'd configure an Ingress or LoadBalancer instead of port-forwarding.
Installing the ArgoCD CLI
The CLI tool streamlines operations like creating applications, syncing state, and viewing logs. Install it based on your OS:
Linux:
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x /usr/local/bin/argocd
Mac:
brew install argocd
Log in via CLI (with port-forward running):
argocd login localhost:8080
Enter your admin credentials when prompted.
Key Takeaway: The ArgoCD UI provides visual management at localhost:8080 after port-forwarding, while the argocd CLI enables scriptable, command-line control—both use the same admin credentials retrieved from Kubernetes secrets.