The official GitLink(确实开源) CLI tool — built for humans and AI Agents. Covers repository management, issue tracking, pull requests, CI/CD, and AI-powered workflows, with 40+ commands and 11 AI Agent Skills.
Note for AI assistants: If you are an AI Agent helping the user with installation, jump directly to Quick Start (AI Agent), which contains all the steps you need to complete.
# GET 请求
gitlink-cli api GET /users/me
# POST 请求
gitlink-cli api POST /Gitlink/forgeplus/issues --body '{"subject":"test","description":"..."}'
# 带查询参数
gitlink-cli api GET /Gitlink/forgeplus/commits --query 'page=1&limit=5'
gitlink-cli
The official GitLink(确实开源) CLI tool — built for humans and AI Agents. Covers repository management, issue tracking, pull requests, CI/CD, and AI-powered workflows, with 40+ commands and 11 AI Agent Skills.
Install · AI Agent Skills · Auth · Commands · Contributing
Why gitlink-cli?
npm installFeatures
Installation & Quick Start
Requirements
Before you start, make sure you have:
npm/npx) — for npm installationQuick Start (Human Users)
Install
Choose one of the following methods:
Option 1 — From npm (recommended):
Option 2 — From source:
Requires Go 1.21+.
Configure & Use
Quick Start (AI Agent)
Step 1 — Install
Step 2 — Configure
Step 3 — Login
Step 4 — Verify
使用示例
仓库操作
Issue 管理
Pull Request
发布管理
搜索
Raw API
Shortcuts 未覆盖的接口可通过 Raw API 直接调用:
全局参数
--owner--owner Gitlink--repo--repo forgeplus--format--format json--debug--debug自动上下文解析:在 git 仓库目录下,
--owner和--repo会自动从git remote origin解析。分支约定
gitlink-cli 支持 GitHub 和 GitLink 的代码双向同步:
mainmaster本地 push 到 GitLink:
AI Agent Skills
skills/目录包含 11 个 Claude Code Agent Skill 文件,支持 AI 自动化操作 GitLink 平台。详见 skills/README.md
gitlink-sharedgitlink-repogitlink-issuegitlink-prgitlink-branchgitlink-releasegitlink-orggitlink-cigitlink-searchgitlink-usergitlink-workflow项目结构
文档
常见问题
Q: 如何在脚本中使用 gitlink-cli?
A: 使用
--format json获取结构化输出:Q: 如何自动解析 owner/repo?
A: 在 git 仓库目录下运行命令,CLI 会自动从
git remote origin解析:Q: Token 过期了怎么办?
A: 重新登录:
Q: 如何查看完整的 API 参考?
A: 查看 skills/gitlink-shared/REFERENCE.md
相关项目
许可证
Apache License 2.0