Cursor Origin CLI 怎么安装
Origin 早期 beta:curl 安装 origin 二进制,auth login 后可 repo create/push;与 Cursor Agent CLI(agent)不是同一个命令。

cursor origin cli 怎么安装:Origin 是 Cursor 的代码托管(2026-08-17 起早期 beta)。官方文档给的安装命令:
curl -fsSL https://downloads.cursor.com/origin/install.sh | sh
二进制默认进 ~/.local/bin/origin。zsh 报 command not found 时,把该目录加进 PATH。产品背景见 Origin 是什么。
和 agent CLI 别混
文档强调:Origin CLI 叫 origin;Cursor Agent CLI 叫 agent,文档在另一棵树。装错命令会「怎么都 push 不到 Origin」。验证:
origin --version
origin auth login
登录会走浏览器,并用你有 Origin 权限的 Cursor 账号。登录同时配置 git credential helper,之后对 Origin remote 的 push/pull 一般不用再手填令牌。
常用仓库命令
origin repo create my-project
origin repo delete acme/my-project
origin update
无斜杠的 create 落在你账户命名空间;delete 要写全 org/name。也可让 Cursor Agent 代劳:安装、登录、建仓、设 remote、推送。创建仓库 UI 路径见官方 create repository。
权限与企业
免费计划没有 Origin。企业管理员可退出,见 Origin 企业怎么退出。装好却无权限:先确认付费席位与 codebase 是否开通。
建仓后可:
git remote add origin https://origin.cursor.com/{owner}/{repo}.git
git push -u origin main
本地已有项目用 remote add;空仓先 clone 再加文件。Agent 代建时确认账号有 Origin 权限。原文:Install the CLI。