> For the complete documentation index, see [llms.txt](https://titannet.gitbook.io/titan-network-cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://titannet.gitbook.io/titan-network-cn/hui-geng-si-ce-shi-wang/huygens-testnet/an-zhuang-cheng-xu-zhuan-qu/ming-ling-xing-an-zhuang.md).

# \</> 命令行 安装

{% hint style="info" %}
我们的 GitHub 上的 [**Releases**](https://github.com/Titannet-dao/titan-node/releases) 部分是获取最新二进制发布版本和查看源代码的最佳位置。
{% endhint %}

{% tabs %}
{% tab title="🖼️Windows" %}

### 步骤 1：下载 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

{% embed url="<https://github.com/Titannet-dao/titan-node/releases>" %}

### 步骤 2：启动 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
titan-edge daemon start --init --url https://test-locator.titannet.io:5000/rpc/v0
```

###

### **步骤 3：👉**[**申请身份码**](/titan-network-cn/hui-geng-si-ce-shi-wang/huygens-testnet/an-zhuang-cheng-xu-zhuan-qu/bang-ding-shen-fen-ma.md)**👈**

###

### 步骤4：绑定身份码

*将申请到的 <mark style="color:red;">**身份码**</mark> 替换 <mark style="color:red;">**your-hash-here**</mark>*

```
titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
```

### **步骤5: 停止节点**

```
titan-edge daemon stop
```

{% endtab %}

{% tab title="🍎macOS" %}

### 步骤 1：下载 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

{% embed url="<https://github.com/Titannet-dao/titan-node/releases>" %}

### 步骤 2：启动 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
titan-edge daemon start --init --url https://test-locator.titannet.io:5000/rpc/v0
```

###

### **步骤 3:  👉**[**申请身份码**](/titan-network-cn/hui-geng-si-ce-shi-wang/huygens-testnet/an-zhuang-cheng-xu-zhuan-qu/bang-ding-shen-fen-ma.md)**👈**

###

### 步骤4:绑定身份码

*将申请到的 <mark style="color:red;">**身份码**</mark> 替换 <mark style="color:red;">**your-hash-here**</mark>*

```
titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
```

### **步骤5: 停止节点**

```
titan-edge daemon stop
```

{% endtab %}

{% tab title="🐧Linux" %}

### 步骤 1：下载 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

{% embed url="<https://github.com/Titannet-dao/titan-node/releases>" %}

### 步骤 2：启动 CLI <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
titan-edge daemon start --init --url https://test-locator.titannet.io:5000/rpc/v0
```

###

### **步骤 3:  👉**[**申请身份码**](/titan-network-cn/hui-geng-si-ce-shi-wang/huygens-testnet/an-zhuang-cheng-xu-zhuan-qu/bang-ding-shen-fen-ma.md)**👈**

###

### 步骤4:绑定身份码

*将申请到的 <mark style="color:red;">**身份码**</mark> 替换 <mark style="color:red;">**your-hash-here**</mark>*

```
titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
```

###

### **步骤5: 停止节点**

```
titan-edge daemon stop
```

{% endtab %}

{% tab title="🐳Docker" %}

### 步骤 1：下载镜像 <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
docker pull nezha123/titan-edge
```

### 步骤 2：创建自己的存储卷 <a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

```
mkdir ~/.titanedge
```

*<mark style="color:red;">$storage 是您要配置的存储路径</mark>*

### 步骤3 ：运行

```
docker run -d -v ~/.titanedge:/root/.titanedge nezha123/titan-edge
```

### 步骤4 ：进入容器

```
docker exec -it * /bin/bash
```

*<mark style="color:red;">\*</mark>* *<mark style="color:red;">是您的容器ID</mark>*

### 步骤5 ：绑定您的👉[身份码](/titan-network-cn/hui-geng-si-ce-shi-wang/huygens-testnet/an-zhuang-cheng-xu-zhuan-qu/bang-ding-shen-fen-ma.md)👈

```
titan-edge bind --hash=your-hash-here https://api-test1.container1.titannet.io/api/v2/device/binding
```

{% endtab %}

{% tab title="⚙️ 从源代码构建" %}

```
git clone https://github.com/Titannet-dao/titan-node.git

make
```

### &#x20;<a href="#step-1-download-the-advanced-cli-executables" id="step-1-download-the-advanced-cli-executables"></a>

{% endtab %}
{% endtabs %}
