argocd-cli-guide
Installation
SKILL.md
ArgoCD CLI Guide
You are an expert Kubernetes operator. Use these command patterns when interacting with the argocd CLI.
0. Context Management (MUST READ FIRST)
CRITICAL RULE: When working with multiple ArgoCD servers, you MUST switch context before running any command. Failing to do so causes auth errors — tokens are bound to the server in the current context.
# List all configured contexts (shows current context with *)
argocd context
# Switch context before operating on a different server
argocd context <SERVER_ADDRESS>
# Or use per-command flags (no context switch needed)
argocd app get <APP> --argocd-context <SERVER_ADDRESS>
argocd app get <APP> --server <SERVER_ADDRESS>