ArgoCD CLI 认证登录
argocd-login
通过 SSO 和 gRPC-Web 进行 ArgoCD CLI 认证。当用户提及 ArgoCD 登录、argocd 认证、SSO 认证,或需要访问 ArgoCD 应用与集群时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 60
- Forks
- 6
01 前言 Front Matter
- name
- argocd-login
- created
- 1765843200000
- modified
- 1777075200000
- reviewed
- 1777075200000
- description
- ArgoCD CLI auth with SSO and gRPC-Web. Use when the user mentions ArgoCD login, argocd authentication, SSO auth, or accessing ArgoCD applications and clusters.
- allowed-tools
- Bash, Read, Grep, Glob
- user-invocable
- false
02 资源文件 22
- 脚本core/color_palettes.py8.5 KB
- 脚本core/easing.py6.1 KB
- 脚本core/frame_composer.py14.1 KB
- 脚本core/gif_builder.py9.3 KB
- 脚本core/typography.py10.5 KB
- 脚本core/validators.py8.0 KB
- 脚本core/visual_effects.py14.5 KB
- 许可证LICENSE.txt11.1 KB
- 参考文档requirements.txt66 B
- 脚本templates/bounce.py3.0 KB
- 脚本templates/explode.py11.0 KB
- 脚本templates/fade.py9.9 KB
- 脚本templates/flip.py9.2 KB
- 脚本templates/kaleidoscope.py6.2 KB
- 脚本templates/morph.py11.0 KB
- 脚本templates/move.py9.2 KB
- 脚本templates/pulse.py8.4 KB
- 脚本templates/shake.py3.6 KB
- 脚本templates/slide.py9.1 KB
- 脚本templates/spin.py8.9 KB
- 脚本templates/wiggle.py9.8 KB
- 脚本templates/zoom.py9.9 KB
03 SKILL.md 正文
ArgoCD CLI Login
ArgoCD CLI authentication with SSO for the Data Portal cluster.
When to Use This Skill
| Use this skill when... | Use kubernetes-operations instead when... |
|---|---|
| Authenticating to ArgoCD CLI via SSO | Working directly with kubectl against the cluster |
| Resolving ArgoCD CLI auth errors before running argocd commands | Inspecting Kubernetes workloads without going through ArgoCD |
| Setting up gRPC-Web access to argocd.dataportal.fi | Using kubectl-debugging to debug a specific pod or node |
When to Use
Use this skill automatically when:
- User requests ArgoCD login or authentication
- User mentions accessing ArgoCD cluster or applications
- User needs to interact with ArgoCD CLI tools
- Authentication errors occur when using ArgoCD commands
Authentication Command
argocd login argocd.dataportal.fi --grpc-web --sso
Command Breakdown
argocd.dataportal.fi- Data Portal ArgoCD server endpoint--grpc-web- Enable gRPC-Web protocol (required for web-based SSO)--sso- Use Single Sign-On authentication (opens browser for OAuth2 flow)
Usage Flow
-
Detect authentication need:
- User explicitly requests login
- ArgoCD command fails with authentication error
- User mentions accessing ArgoCD cluster
-
Execute login command:
argocd login argocd.dataportal.fi --grpc-web --sso -
Guide user through SSO:
- Command will open browser automatically
- User completes SSO authentication in browser
- CLI receives token upon successful authentication
- Session is stored in
~/.config/argocd/config
-
Verify authentication:
argocd account get-user-info
Common ArgoCD Operations (Post-Login)
Application Management
# List applications
argocd app list
# Get application details
argocd app get <app-name>
# Sync application
argocd app sync <app-name>
# View application resources
argocd app resources <app-name>
Cluster Information
# List clusters
argocd cluster list
# Get cluster info
argocd cluster get <cluster-name>
Project Management
# List projects
argocd proj list
# Get project details
argocd proj get <project-name>
Authentication Session
- Session storage:
~/.config/argocd/config - Session persistence: Tokens have configurable expiration
- Re-authentication: Run login command again when session expires
Troubleshooting
Browser doesn't open
- Manually open the URL printed by the CLI
- Complete authentication in browser
- Token will be received by CLI
gRPC-Web errors
- Ensure
--grpc-webflag is present - Check network connectivity to
argocd.dataportal.fi - Verify firewall/proxy settings allow gRPC-Web traffic
SSO failures
- Verify SSO provider is accessible
- Check browser for authentication prompts
- Ensure popup blockers aren't interfering
- Try incognito/private browsing mode
Token expiration
- Re-run login command:
argocd login argocd.dataportal.fi --grpc-web --sso - Check token validity:
argocd account get-user-info
Integration with ArgoCD MCP
This skill complements the ArgoCD MCP server tools:
- MCP tools (
mcp__argocd-mcp__*) require authenticated CLI session - Use this skill to establish authentication before MCP operations
- Both use same configuration (
~/.config/argocd/config)
Security Considerations
- Token storage: CLI tokens stored locally in config file
- Token scope: Full ArgoCD access (read/write based on RBAC)
- Token rotation: Re-authenticate periodically for security
- Shared sessions: CLI and MCP share authentication state
Example Interaction
User: "I need to check the status of my ArgoCD applications"
Claude: I'll log you into ArgoCD first, then check the application status.
[Executes: argocd login argocd.dataportal.fi --grpc-web --sso]
Please complete the SSO authentication in the browser that just opened.
Once authenticated, I'll retrieve your application list.
[After successful auth, executes: argocd app list]
Here are your applications:
...
Related Skills
- Kubernetes Operations - For kubectl operations on ArgoCD-managed resources
- GitHub Actions Inspection - For CI/CD pipeline integration with ArgoCD
- Infrastructure Terraform - For infrastructure managed by ArgoCD applications
References
04 同仓库更多 Skills
session-workflow-capture
Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.
kitty-show-image
Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no /dev/tty.
kitty-session-persistence
Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.
kitty-remote-control
Safe kitty remote control from an agent — read panes with kitty @ ls/get-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.
docs-reference-check
Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved/deleted files, or wiring a doc-drift lint.
YouTube 视频上传与编辑
youtube-upload
通过 Data API v3 将视频上传到 YouTube,并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。