@gitlab/orbit

中文文档
1.4.0发布于 2026/11/12SEE LICENSE IN LICENSE.md零依赖构建来源已验证近 30 天下载 4473

GitLab Orbit local CLI

原始使用文档

@gitlab/orbit

GitLab Orbit local CLI. Indexes a repository on your machine into a local DuckDB property graph and answers code-structure queries (definitions, references, imports, files, directories) over it.

Install

npm install -g @gitlab/orbit

This wrapper package selects and installs the prebuilt binary for your platform via optional dependencies:

  • @gitlab/orbit-darwin-arm64
  • @gitlab/orbit-darwin-x64
  • @gitlab/orbit-linux-arm64
  • @gitlab/orbit-linux-x64
  • @gitlab/orbit-win32-x64

Linux binaries are fully static (musl) and run on both glibc and musl distributions.

Usage

orbit workspace index /path/to/your/repo
orbit help

See the GitLab Orbit CLI documentation for access methods (direct CLI, glab, MCP) and query examples.

版本与发布记录

@gitlab/orbit 共发布 80 个版本,首次发布于 2026/05/26;过去 12 个月发布了 80 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.4.0latest2026/11/124 天前
1.2.12026/11/105 天前
1.2.02026/11/106 天前
1.1.02026/11/0610 天前
1.0.02026/10/3017 天前
0.164.02026/10/3017 天前

关于 @gitlab/orbit 的常见问题

@gitlab/orbit 是什么?

GitLab Orbit local CLI

如何安装 @gitlab/orbit?

在项目目录运行 npm install @gitlab/orbit,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 orbit,可以用 npx orbit 直接运行。

@gitlab/orbit 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/gitlab__orbit 是否存在。

@gitlab/orbit 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@gitlab/orbit 可以商用吗?

@gitlab/orbit 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@gitlab/orbit 的下载量有多少?

根据 npm 官方下载统计,@gitlab/orbit 在 2026/10/17 – 2026/11/15 这 30 天内被下载 4,473 次,日均约 149 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@gitlab/orbit 还在维护吗?

最新版本 1.4.0 发布于 2026/11/12(4 天前);至今共发布 80 个版本,其中过去 12 个月发布了 80 个;首次发布于 2026/05/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。