安装
只安装应用实际使用的接入面。
curl -fsSL https://graft.eidos.space/install.sh | shgraft --version安装脚本会为当前平台下载最新发布的二进制文件。需要固定版本时:
curl -fsSL https://graft.eidos.space/install.sh \ | GRAFT_VERSION=0.15.5 sh也可以从 GitHub Releases 下载预构建压缩包。
安装后,可以使用下面的命令原地更新当前 CLI:
graft upgradepnpm add @eidos.space/graft软件包支持 Node.js 20 及以上版本,并为当前平台选择预构建 Node-API 8 二进制文件。 继续阅读 SDK 快速开始。
根据宿主环境选择软件包:
pnpm add @eidos.space/graft-remotepnpm add @eidos.space/graft-remote-hono honopnpm add @eidos.space/graft-remote-cloudflare选择协议引擎、路由适配器或 Cloudflare 存储适配器前,先阅读 远端服务。
从源码构建 CLI
Section titled “从源码构建 CLI”源码构建需要 Rust 1.91 或更高版本:
git clone https://github.com/eidos-space/graft.gitcd graftcargo build -p graft-cli --bin graft --release./target/release/graft --version如果要在仓库外使用源码构建,把 target/release/graft 加入 PATH。