重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
cursor by dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations
npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill cursor使用 cursor CLI 来控制 Cursor AI 驱动的代码编辑器(VS Code 分支)。
/usr/local/bin/cursor
打开当前目录:
cursor .
打开特定文件:
cursor /path/to/file.ts
在特定行打开文件:
cursor /path/to/file.ts:42
在特定行和列打开文件:
cursor /path/to/file.ts:42:10
打开文件夹:
cursor /path/to/project
打开多个文件:
cursor file1.ts file2.ts file3.ts
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在新窗口中打开:
cursor -n /path/to/project
在新窗口中打开(别名):
cursor --new-window /path/to/project
重用现有窗口:
cursor -r /path/to/file
重用现有窗口(别名):
cursor --reuse-window /path/to/file
比较两个文件:
cursor -d file1.ts file2.ts
差异(别名):
cursor --diff file1.ts file2.ts
等待文件关闭(在脚本中很有用):
cursor --wait /path/to/file
简短形式:
cursor -w /path/to/file
用作 git 编辑器:
git config --global core.editor "cursor --wait"
将文件夹添加到当前工作区:
cursor --add /path/to/folder
列出已安装的扩展:
cursor --list-extensions
安装扩展:
cursor --install-extension <extension-id>
卸载扩展:
cursor --uninstall-extension <extension-id>
禁用所有扩展:
cursor --disable-extensions
显示版本:
cursor --version
显示帮助:
cursor --help
详细输出:
cursor --verbose /path/to/file
打开开发者工具:
cursor --inspect-extensions
用户设置位置:
~/Library/Application Support/Cursor/User/settings.json
键盘快捷键位置:
~/Library/Application Support/Cursor/User/keybindings.json
指定用户数据目录:
cursor --user-data-dir /path/to/data
指定扩展目录:
cursor --extensions-dir /path/to/extensions
从标准输入读取:
echo "console.log('hello')" | cursor -
Cursor 支持类似于 VS Code 的远程开发。SSH 远程配置位于:
~/.ssh/config
然后在 GUI 中使用命令面板或远程资源管理器。
每周安装次数
51
代码仓库
GitHub 星标数
55
首次出现
2026年1月20日
安全审计
安装于
gemini-cli38
opencode38
codex36
cursor34
claude-code32
amp28
Use the cursor CLI to control the Cursor AI-powered code editor (VS Code fork).
/usr/local/bin/cursor
Open current directory:
cursor .
Open specific file:
cursor /path/to/file.ts
Open file at specific line:
cursor /path/to/file.ts:42
Open file at line and column:
cursor /path/to/file.ts:42:10
Open folder:
cursor /path/to/project
Open multiple files:
cursor file1.ts file2.ts file3.ts
Open in new window:
cursor -n /path/to/project
Open in new window (alias):
cursor --new-window /path/to/project
Reuse existing window:
cursor -r /path/to/file
Reuse existing window (alias):
cursor --reuse-window /path/to/file
Compare two files:
cursor -d file1.ts file2.ts
Diff (alias):
cursor --diff file1.ts file2.ts
Wait for file to close (useful in scripts):
cursor --wait /path/to/file
Short form:
cursor -w /path/to/file
Use as git editor:
git config --global core.editor "cursor --wait"
Add folder to current workspace:
cursor --add /path/to/folder
List installed extensions:
cursor --list-extensions
Install extension:
cursor --install-extension <extension-id>
Uninstall extension:
cursor --uninstall-extension <extension-id>
Disable all extensions:
cursor --disable-extensions
Show version:
cursor --version
Show help:
cursor --help
Verbose output:
cursor --verbose /path/to/file
Open developer tools:
cursor --inspect-extensions
User settings location:
~/Library/Application Support/Cursor/User/settings.json
Keybindings location:
~/Library/Application Support/Cursor/User/keybindings.json
Specify user data directory:
cursor --user-data-dir /path/to/data
Specify extensions directory:
cursor --extensions-dir /path/to/extensions
Read from stdin:
echo "console.log('hello')" | cursor -
Cursor supports remote development similar to VS Code. SSH remotes are configured in:
~/.ssh/config
Then use command palette or remote explorer in the GUI.
Weekly Installs
51
Repository
GitHub Stars
55
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli38
opencode38
codex36
cursor34
claude-code32
amp28
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
122,000 周安装