EdgeCloud Client CLI Guide
User can interact with the EdgeCloud client via command line in either a Linux terminal or the Windows PowerShell terminal. Please see below for more details.
1. Manage the EdgeCloud Client
Keep your EdgeCloud client up-to-date
sudo apt update && sudo apt upgrade
Start/Restart your EdgeCloud client
sudo edgecloud start
Disconnect your EdgeCloud client from the network
sudo edgecloud stop
Use this if your RPC API calls break after an update
sudo edgecloud reset-service
2. Query Status
The status query command allows you to query the current status of the edge cloud client. It returns key information such as the client’s wallet address, hourly rental price, recent deployments and jobs, their associated rewards, and other relevant statistics.
sudo edgecloud status
3. Set Rental Price
This command lets you define the hourly rental rate for deployments originating from Theta EdgeCloud GPU node product or dedicated model deployment product. For example, sudo edgecloud set --price 0.10
will set the hourly rate to $0.10 per hour.
sudo edgecloud set --price $HOURLY_RENTAL_PRICE
# Set your node's hourly rate to $0.10, and then verify that the change has taken effect
sudo edgecloud set --price 0.10
sudo edgecloud status
Note that this hourly rate applies only to deployments. For jobs originating from Theta EdgeCloud’s on-demand model API, nodes are rewarded based on the number of model inferences performed. Each inference earns a fixed USD-denominated reward, calculated according to the standard rate of the on-demand API product.
4. More Options
Please use the following to list all available EdgeCloud client commands
sudo edgecloud --help
Here are the all the options currently available:
Theta Edge Cloud Node.
Usage:
edgecloud [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
get Get attributes for your edgecloud node
help Help about any command
reconcile Reconcile your connection to the Edge Cloud Network
reset-service Reset edgecloud background service
rpc Start RPC Server to perform RPC calls against edgecloud
set Set attributes for your edgecloud node
start Start Theta Edge Cloud Node.
status Get Status of your connection to the Edge Cloud Network
stop Stop Theta Edge Cloud Node.
Flags:
--config string config path
-h, --help help for edgecloud
--password string password for the node
To learn more details of each subcommand, you can run sudo edgecloud [command] --help
for more information. For example, sudo edgecloud set --help
prints the following:
Set attributes for your edgecloud node
Usage:
edgecloud set [flags]
Flags:
-h, --help help for set
--price string price per hour to rent out your machine in $
Global Flags:
--config string config path (default is /home/rtx4070/.edgecloud) (default "/home/rtx4070/.edgecloud")
--password string password for the node
Updated about 14 hours ago