# Curio命令行界面 | Curio CLI

## Curio CLI

## Curio 命令行界面

Curio默认附带两个二进制文件，分别称为`curio`和`sptool`。

### Curio Binary

### Curio 二进制文件

Curio的命令行界面（CLI）的运行方式与典型软件略有不同。一些命令，如与存储相关的命令，在后端进行API调用，而其他命令则直接与数据库交互以执行所需操作。

需要进行API调用的命令需要认证，因为Curio API是经过权限控制的。这种认证涉及在API调用中传递令牌和地址。Curio CLI无缝处理这种认证，无需为令牌和地址设置环境变量。它从数据库中检索认证和执行者详细信息，并相应地生成API调用。

这种设计允许您在不直接访问远程节点的情况下对其进行更改。例如，您可以从节点1中分离节点2的存储。所有这些命令都嵌套在`cli`子命令下。

要在远程机器上执行操作，您必须使用`--machine`标志以`--machine=10.0.0.1:12300`的格式提供正确的IP地址和端口。

本文档解释了Curio CLI的独特方面，包括其认证过程以及如何与远程节点交互。

`curio` CLI参考可以在[这里](/zh/curio-cli/curio.md)找到。

### Sptool Binary

### Sptool 二进制文件

某些管理和监控操作需要更新或从链上获取有关minerID的信息。这些操作不需要访问数据库，因此不包含在Curio二进制文件中。相反，这些命令托管在`sptool`二进制文件下。`sptool`二进制文件为存储提供商所需的Filecoin区块链操作提供了一个接口。

`sptool` CLI参考可以在[这里](/zh/curio-cli/sptool.md)找到。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.curiostorage.org/zh/curio-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
