> ## Documentation Index
> Fetch the complete documentation index at: https://injectivelabs-docs-ai-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 安装 injectived

## 平台兼容性指南

查看此表以了解哪些平台支持运行 `injectived` CLI：

| 平台                | 预构建二进制文件 | Docker | 从源码构建 |
| ----------------- | -------- | ------ | ----- |
| macOS (M1/ARM)    | ❌        | ✅      | ✅     |
| macOS (Intel)     | ❌        | ✅      | ✅     |
| Windows (x86\_64) | ❌        | ✅      | ❌     |
| Windows (ARM)     | ❌        | ✅      | ❌     |
| Linux (x86\_64)   | ✅        | ✅      | ✅     |
| Linux (ARM)       | ❌        | ✅      | ✅     |

## 使用预构建二进制文件入门

目前，唯一支持运行预构建 `injectived` CLI 的平台是 Linux x86\_64。预构建二进制文件可在 [Injective GitHub Releases 页面](https://github.com/InjectiveLabs/injective-chain-releases/releases)获取。

```bash theme={null}
wget https://github.com/InjectiveLabs/injective-chain-releases/releases/download/v1.14.1-1740773301/linux-amd64.zip
unzip linux-amd64.zip
```

此 zip 文件将包含以下文件：

* **`injectived`** - Injective 守护进程，也是 CLI
* **`peggo`** - Injective Ethereum 桥接中继守护进程
* **`libwasmvm.x86_64.so`** - WASM 虚拟机支持文件

注意：部署和实例化智能合约不需要 `peggo`，这是为验证者准备的。

```bash theme={null}
sudo mv injectived /usr/bin
sudo mv libwasmvm.x86_64.so /usr/lib
```

确认你的版本与以下输出匹配（如果有更新版本可用，你的输出可能略有不同）：

```bash theme={null}
injectived version

Version v1.14.1 (0fe59376dc)
Compiled at 20250302-2204 using Go go1.23.1 (amd64)
```

继续阅读[使用 injectived](/cn/developers/injectived/use/) 了解如何使用 `injectived` CLI 与 Injective 区块链交互。

## 使用 Docker 入门

以下命令将启动一个带有 `injectived` CLI 的容器：

```bash theme={null}
docker run -it --rm injectivelabs/injective-core:v1.14.1 injectived version

Version v1.14.1 (0fe59376d)
Compiled at 20250302-2220 using Go go1.22.11 (amd64)
```

这与大多数平台和 arm64 / x86\_64 架构兼容。

继续阅读[使用 injectived](/cn/developers/injectived/use/) 了解如何使用 `injectived` CLI 与 Injective 区块链交互。

## 从源码入门

以下命令将从源码构建 `injectived` CLI：

```bash theme={null}
git clone https://github.com/InjectiveFoundation/injective-core.git
cd injective-core && git checkout v1.14.1
make install
```

这将把 `injectived` CLI 安装到你的 go path。

```bash theme={null}
injectived version

Version v1.14.1 (dd7622f)
Compiled at 20250302-2230 using Go go1.24.0 (amd64)
```

（commit hash 可能不同，因为开源仓库与预构建版本是分开发布的）。

继续阅读[使用 injectived](/cn/developers/injectived/use/) 了解如何使用 `injectived` CLI 与 Injective 区块链交互。
