Skip to main content

高级安装

完整配置开发环境,获得最佳体验。

什么是 CLI?

CLI(Command Line Interface,命令行界面)是通过文本命令与计算机交互的方式。 42plugin CLI 的意义
  • 快速安装和管理插件
  • 跨项目同步插件配置
  • 自动化插件发布流程
  • 与 AI 编码助手无缝集成

macOS 完整安装

1. 安装 Homebrew

/bin/bash -c "$(curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/install.sh)"

2. 通过 Homebrew 安装工具

# 安装 Bun(JavaScript 运行时)
brew install bun

# 安装 Claude Code(AI 编码助手)
brew install claude-code

# 安装 42plugin CLI
brew tap 42ailab/42plugin && brew install 42plugin

3. 可选工具

# Zed 编辑器
brew install --cask zed

Windows 完整安装

1. 安装 Scoop

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex

2. 安装工具

scoop install bun
scoop install 42plugin

可选:通过 Bun 安装

如果你已经安装了 Bun:
bun add -g @42ailab/42plugin

可选:AI 编码助手配置

Claude Code

访问 claude.ai/download 下载安装。

其他 AI 工具

目前只支持 Claude Code(推荐) 未来将支持:
  • Cursor
  • Windsurf
  • Codex、Gemini Code 等

下一步

登录你的账号

使用 42plugin auth 登录