🤖</>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

Allow use start or stop the node service

Start command:

titan-edge daemon start

Stop command:

titan-edge daemon stop

3. View node ID

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

titan-edge info

4. Modify the storage path

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.

Restart the node: to make the modification effective, you need to restart the node mannually. Please refer to the step 2, stop it and start again.

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

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, stop it and start again.

6. View configurations

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.

7. View node binding information

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

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.

*As shown above, if wait cache asset count is not 0, there are download tasks ongoing.

9. Background Running Command

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

Last updated