Executable name - radixnode
All the below commands can be executed on Ubuntu 20.04 ( supported OS) as below
radixnode <sub command>
To download the cli, following instructions from here
The main purpose of this cli is to enable node runners
- To interact with node using common API calls
- To setup node quickly on a fresh ubuntu machine using docker compose or systemd
- To setup monitoring for the node. Currently supports monitoring the API exposed by the node.
To list the endpoints supported by cli
$ radixnode api
usage: radixnode [-h]
{validation,account,health,version,universe,metrics,system}
radixnode: error: the following arguments are required: apicommandTo list the methods supported by the endpoints say for example account endpoint
$radixnode api account
usage: radixnode [-h] {register-validator,unregister-validator,get-info} ...
account commands
positional arguments:
{register-validator,unregister-validator,get-info}| Sub Commands | Options | Prompts | Comments |
|---|---|---|---|
| api account get-info | - | - | Returns the response from POST request using get_info method on /account |
| api account register-validator | - |
|
Returns the response on POST using register_validator method on /account |
| api account unregister-validator | - | - | Returns the response on POST using unregister_validator method on /account |
| api validation get-node-info | - | - | Returns the response of POST request using get_validator_info method on /validation |
| api validation get-current-epoch-data | - | - | Returns the response of POST request using get_current_epoch_data method on /validation |
| api health | - | - | Returns the response of GET request on /health endpoint |
| api version | - | - | Returns the response of GET request on /version endpoint |
| api universe | - | - | Returns the response of GET request on /universe endpoint |
| api metrics | - | - | Returns the response of GET request on /metrics endpoint |
| api system api-get-configuration | - | - | Returns the response of POST request using api_get_configuration on /system endpoint |
| api system api-get-data | - | - | Returns the response of POST request using api_get_data on /system endpoint |
| api system bft-get-configuration | - | - | Returns the response of POST request using bft_get_configuration on /system endpoint |
| api system bft-get-data | - | - | Returns the response of POST request using bft_get_data on /system endpoint |
| api system mempool-get-configuration | - | - | Returns the response of POST request using mempool_get_configuration on /system endpoint |
| api system mempool-get-data | - | - | Returns the response of POST request using mempool_get_data on /system endpoint |
| api system ledger-get-latest-proof | - | - | Returns the response of POST request using ledger_get_latest_proof on /system endpoint |
| api system ledger-get-latest-epoch-proof | - | - | Returns the response of POST request using ledger_get_latest_epoch_proof on /system endpoint |
| api system radix-engine-get-configuration | - | - | Returns the response of POST request using radix_engine_get_configuration on /system endpoint |
| api system radix-engine-get-data | - | - | Returns the response of POST request using radix_engine_get_data on /system endpoint |
| api system sync-get-configuration | - | - | Returns the response of POST request using sync_get_configuration on /system endpoint |
| api system sync-get-data | - | - | Returns the response of POST request using sync_get_data on /system endpoint |
| api system networking-get-configuration | - | - | Returns the response of POST request using networking_get_configuration on /system endpoint |
| api system networking-get-data | - | - | Returns the response of POST request using networking_get_data on /system endpoint |
| api system checkpoints-get-checkpoints | - | - | Returns the response of POST request using checkpoints_get_checkpoints on /system endpoint |
| Sub Commands | Arguments | Prompts | Comments |
|---|---|---|---|
| docker configure | - | - | Prints out instruction to logout and login at the end if required |
| docker setup | -n or --nodetype <(fullnode or archivenode>, required, -t or --trustednode , required. -u or --update, optional |
- Displays URL of composefile being used and prompts to continue - Prompts to back up the file, if the compose file exists - Prompts about generation of key if doesn't exist or just the password if key already exists - Displays the compose file asking user to start the node with Y/n |
-Setups the docker compose file for the node type -Create key if not present and then asks for password - Prints out instruction to stop and start the docker containers, if user chooses not to start the containers at the end |
| docker start | -t or --trustednode , required. -f or --composefile required |
- Prompts about generation of key otherwise just password if key already exists |
Setups the environment variables and brings up the container |
| docker stop | -f or --composefile ,required -v or --removevolumes, optional |
Stops the docker containers and removes volumes if one wants to clear the volumes. Externally mounted volumes won't be cleared even with -v option |
| Sub Commands | Arguments | Prompts | Comments |
|---|---|---|---|
| systemd configure | - | - Prompts for radixdlt user password |
Prints out instructions to edit sudoers file and add public ssh key for password less login |
| systemd setup | -r or --release , required -n or --nodetype , required, -t or --trustednode , required. -i or --hostip ,required -u or --update, optional |
- Displays URL of node binary and nginx binary being downloaded and prompts to continue - Prompts to back up files for node service, if the below files exists -- environment -- config -- radixdlt-node.service - Prompts if user wants to setup nginx. If yes , then prompts for backup on existing nginx files - Prompts for existing nginx secrets before recreating them |
|
| systemd restart | - | - | |
| systemd stop | -s or --services , defaults=all |
- | Stop the service based on the option. If option not provided , it stops both |
| Sub Commands | Arguments | Prompts | Comments |
|---|---|---|---|
| auth set-admin-password | -m or --setupmode 'DOCKER or SYSTEMD', required |
- Prompts for nginx admin password to be changed or to be setup |
|
| auth set-superadmin-password | -m or --setupmode 'DOCKER or SYSTEMD', required |
- Prompts for nginx admin password to be changed or to be setup |
|
| auth set-metrics-password | -m or --setupmode 'DOCKER or SYSTEMD', required |
- Prompts for nginx admin password to be changed or to be setup |
| Sub Commands | Arguments | Prompts | Comments |
|---|---|---|---|
| monitoring setup | - | - | Uses hardcoded cli version to download the aritfacts. Creates external volumes for prometheus and grafana and starts up the monitoring containers |
| monitoring start | - | - | Starts the docker containers related to monitoring |
| monitoring stop | -v or --removevolumes |
- | Stops the docker containers and removes volumes if one wants to clear the volumes. Externally created/mounted volumes won't be cleared even with -v option |
| Sub Commands | Arguments | Prompts | Comments |
|---|---|---|---|
| optimise-node | - | - Prompts asking to setup limits - Prompts asking to setup swap and size of swap in GB |
- |
| version | - | - | Prints out the version of cli |
To list all subcommands
# To list the subcommands
radixnode -h
usage: radixnode.py [-h]
{docker,systemd,api,monitoring,version,optimise-node,auth}
positional arguments:
{docker,systemd,api,monitoring,version,optimise-node,auth}
Subcommand to run
optional arguments:
-h, --help show this help message and exitTo list options/arguements for the subcommand
# Check the options for a subcommand such as start-docker
radixnode docker -h
usage: radixnode.py [-h] {setup,start,stop,configure} ...
Docker commands
positional arguments:
{setup,start,stop,configure}
optional arguments:
-h, --help show this help message and exit