# \</>CLI Management Commands

## 1. View current storage usage

This command returns the storage used, the space limit set by user, and the current available space

```
titan-edge info
```

## 2. Start / Stop node service <a href="#id-2.-qi-dong-ting-zhi-jie-dian-fu-wu" id="id-2.-qi-dong-ting-zhi-jie-dian-fu-wu"></a>

Allow use start or stop the node service

Start command:

```
titan-edge daemon start
```

Stop command:

```
titan-edge daemon stop
```

## 3. View node ID <a href="#id-3.-cha-kan-she-bei-id" id="id-3.-cha-kan-she-bei-id"></a>

It shows the node ID, the unique identifier of the node in the network

```
titan-edge info
```

## 4. Modify the storage path <a href="#id-4.-xiu-gai-cun-chu-lu-jing" id="id-4.-xiu-gai-cun-chu-lu-jing"></a>

```
titan-edge config set --storage-path /new/path/to/storage
```

**Description**

This command allow you to specify a new path for node data storage.

**Parameter**

* Please replace `/new/path/to/storage` with your prefered location

**Important steps and notes**

**After the command executes**: the original files will be automatically migrated to the new location. Note that this process will not delete the files in the old location. You need to delete them mannually.&#x20;

**Restart the node**: to make the modification effective, you need to restart the node mannually. Please refer to the [step 2](#id-2.-qi-dong-ting-zhi-jie-dian-fu-wu), stop it and start again.&#x20;

**Downloading in progress**: if some file is downloading during the path modification, the migration may cause the current download fails. Please make sure there is no ongoing download task before modify the path.

## 5. Modify the maximum storage usage <a href="#id-5.-xiu-gai-cun-chu-kong-jian-da-xiao" id="id-5.-xiu-gai-cun-chu-kong-jian-da-xiao"></a>

To set the maximum storage the Titan node is allowed to use, please use the following command:

```
titan-edge config set --storage-size 50GB
```

**Description**

This command alow you to set the space limit for the Titan node to use.

**Parameter**

* `50GB`: Please replace it with your prefered size, such as `100GB`, `500GB` etc.

**Important steps and notes**

**After the command executes**: to let the change take effect, you need to restart the node

**Restart the node**: Please refer to the [step 2](#id-2.-qi-dong-ting-zhi-jie-dian-fu-wu), stop it and start again.&#x20;

## 6. View configurations <a href="#id-6.-cha-kan-pei-zhi" id="id-6.-cha-kan-pei-zhi"></a>

This command allow you to view all configurations of the Titan node, and you can check if all the modifications you made are correctly applied.

```
titan-edge config show
```

**Effective condition**: please note that even though the configuration may show the new value, some changes need restart to be effective. Be sure you restart correctly after important modifications.&#x20;

## 7. View node binding information <a href="#id-7.-cha-kan-she-bei-bang-ding-xin-xi" id="id-7.-cha-kan-she-bei-bang-ding-xin-xi"></a>

To view the binding information of the current Titan node, please use the following command:

```
titan-edge show binding-info https://web-server-api-url
```

**Note**: You should replace `https://web-server-api-url` with the actual web server API URL used in the current network, which is

```
https://api-test1.container1.titannet.io/api/v2/device
```

In the future, the API URL may be updated from time to time.

## 8. View current download task <a href="#id-8.-cha-kan-jie-dian-shi-fou-you-xia-zai-ren-wu" id="id-8.-cha-kan-jie-dian-shi-fou-you-xia-zai-ren-wu"></a>

To check if the Titan node has any ongoing download task, use the following command:

```
titan-edge cache
```

**Description**

The node provides information about the cache status of the Titan node, including the number of asset waiting for caching. This information tells you whether the node is handling a download task.&#x20;

<figure><img src="https://titannet.gitbook.io/~gitbook/image?url=https%3A%2F%2F3822791205-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FrZQtAKIIsvAQP0E9RumD%252Fuploads%252FxXbwLYv86gerKQHABT5n%252Fimage.png%3Falt%3Dmedia%26token%3D6a95bb7c-e14b-4fd9-8c74-819ec9439505&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1d53f054&#x26;sv=1" alt=""><figcaption></figcaption></figure>

\*As shown above, if `wait cache asset count` is not `0`, there are download tasks ongoing.&#x20;

## 9. Background Running Command <a href="#id-9.-hou-tai-yun-xing-zhi-ling" id="id-9.-hou-tai-yun-xing-zhi-ling"></a>

```
nohup titan-edge daemon start --init --url https://cassini-locator.titannet.io:5000/rpc/v0  > edge.log 2>&1 &
```


---

# 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://titannet.gitbook.io/titan-network-en/resource-network-test/operate-nodes/l2-edge-node/installation-and-earnings/less-than-greater-than-cli-management-commands.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.
