入门指南
安装
使用您喜欢的包管理器安装 protocol-launcher:
sh
$ npm install protocol-launchersh
$ pnpm add protocol-launchersh
$ yarn add protocol-launcherbash
$ bun add protocol-launcher使用
按需加载(推荐)
为了减小打包体积,建议直接导入特定模块:
typescript
// 仅导入 Cherry Studio 相关代码
import { installMCP } from 'protocol-launcher/cherry-studio'typescript
// 仅导入 CodeBuddy 相关代码
import { openFile } from 'protocol-launcher/code-buddy'typescript
// 仅导入 Cursor 相关代码
import { installMCP } from 'protocol-launcher/cursor'typescript
// 仅导入 GitHub Desktop 相关代码
import { openRepo } from 'protocol-launcher/github-desktop'typescript
// 仅导入 GoLand 相关代码
import { openRepo } from 'protocol-launcher/goland'typescript
// 仅导入 IntelliJ IDEA 相关代码
import { openRepo } from 'protocol-launcher/idea'typescript
// 仅导入 PhpStorm 相关代码
import { openRepo } from 'protocol-launcher/phpstorm'typescript
// 仅导入 PyCharm 相关代码
import { openRepo } from 'protocol-launcher/pycharm'typescript
// 仅导入 RustRover 相关代码
import { openRepo } from 'protocol-launcher/rustrover'typescript
// 仅导入 Telegram 相关代码
import { open } from 'protocol-launcher/telegram'typescript
// 仅导入 Thunder 相关代码
import { downloadUrl } from 'protocol-launcher/thunder'typescript
// 仅导入 VS Code 相关代码
import { openFile } from 'protocol-launcher/vscode'typescript
// 仅导入 WebStorm 相关代码
import { openFile } from 'protocol-launcher/webstorm'typescript
// 仅导入 Xcode 相关代码
import { cloneProject } from 'protocol-launcher/xcode'全量导入
您也可以从根包导入所有内容,但这将包含所有应用程序模块,并且不支持 Tree Shaking:
typescript
import { cherryStudio, cursor, githubDesktop } from 'protocol-launcher'有关每个应用程序的详细使用说明,请参阅各自的指南:
- AFFiNE
- Alfred
- Antigravity
- AppFlowy
- Apple Script Editor
- Atom
- BBEdit
- Bear
- Cherry Studio
- CodeBuddy
- CodeBuddy China
- CodeRunner
- CodeLite
- Codex
- Cursor
- Evernote
- FSNotes
- GitHub Desktop
- GoLand
- HBuilderX
- IntelliJ IDEA
- Jump Desktop
- Kaleidoscope
- Kiro
- Lingma
- MacVim
- Nova
- OpenCode
- Orchids
- PearAI
- PhpStorm
- PyCharm
- Qoder
- RustRover
- Shortcuts
- SourceTree
- Telegram
- TextMate
- Theia
- Things
- Thunder
- Trae
- Trae China
- Verdent
- VS Code
- VS Code Insiders
- VSCodium
- WebStorm
- Windsurf
- Xcode
- Zed