Installation
Ensure that the following packages are installed:
- docker
- docker-compose (1.27.4+)
-
Download the executable
-
Apply executable permissions to the downloaded binary
-
Test the Installation
Top Level Commands
Info
Prints build info.Version
Prints version number.--shortprints the version only without additional text.
Node Commands
Node Information
Retrieves the base info about SKALE node.-f/--formataccepts either json or text as valid input which formats the output accordingly
Node Initialization
Initialize a SKALE node on current machine.ENV_FILEPATHis a path to the .env file (required parameters are listed in theskale initcommand)
Node Initialization from Backup
Restores a SKALE node on another machine.BACKUP_PATHis the path to the archive with backup data generated byskale node backupcommandENV_FILEPATHis the path to .env file (required parameters are listed in theskale initcommand)
Node Backup
Generates a backup file to restore SKALE node on another machine.BACKUP_FOLDER_PATHis the path to the folder where the backup tarball will be saved
Node Signature
Generates a node signature that is used to link node to a specific validator.VALIDATOR_ID- id of the validator
Node Registration
--ipis the public IP for RPC connections and consensus--domain/-dis the SKALE node domain name--nameis the SKALE node name
--portis a public port, the beginning of the port range for node SKALE Chains (default: 10000)
Node Update
Updates a SKALE node on the current machine.ENV_FILEPATHis the path to env file where parameters are defined
--yesexecutes without additional confirmation
You can also specify a file with environment variables which will update parameters in env file used during skale node init.
Node Turn-off
Turns off the SKALE node on current machine and optionally sets it to maintenance mode.--maintenance-onsets the SKALE node into maintenance mode before turning off--yesexecutes without additional confirmation
Node Turn-on
Turns on SKALE node on current machine and optionally disables maintenance mode.ENV_FILEPATHis the path to env file where parameters are defined
--maintenance-offturns off maintenance mode after turning on the node--yesexecutes without additional confirmation
You can also specify a file with environment variables
which will update parameters in env file used during skale node init.
Enable Maintenance Mode
Enables maintenance mode on the node.--yesexecutes without additional confirmation
Disable Maintenance Mode
Domain name
Set SKALE node domain name--domain/-dthe SKALE node domain name--yesexecutes without additional confirmation
Wallet commands
Commands related to Ethereum wallet associated with SKALE nodeWallet information
-f/--formatformats the output. Valid inputs are json and text
Send ETH tokens
Sends ETH tokens from the SKALE node wallet to a specific address.ADDRESSis the Ethereum receiver addressAMOUNTis the Amount of ETH tokens to send
--yesexecutes without additional confirmation
SKALE Chain commands
List SKALE Chains on Node
Lists the SKALE Chains served by the connected node.Get SKALE Chain Config
Get SKALE Chain DKG Status
Lists the DKG status for each SKALE Chain on the node.Get SKALE Chain Info
Shows information about a specified SKALE Chain on the node.SCHAIN_NAMEis a valid SKALE Chain on the node
--jsonshows info in JSON format
Repair SKALE Chain
Turn on repair mode for SKALE ChainSCHAIN_NAMEis a valid SKALE Chain on the node
--yesexecutes repair without additional confirmation
Health commands
List Containers
Lists all SKALE containers running on the connected node.-a/--alllists all containers (by default - only running)
Healthcheck for SKALE Chains
Shows health check results for all SKALE Chains on the node.--jsonshows info in JSON format
SGX Commands
Checks status of the SGX server. Returns the SGX server URL and connection status.Example Output
SSL Commands
SSL Status
Retrieves the status of the SSL certificates on the node.Upload Certificates
Uploads new SSL certificates.-c/--cert-pathis the path to the certificate file-k/--key-pathis the path to the key file
-f/--forceoverwrites the existing certificates
Logs Commands
CLI Logs
Fetch Node CLI logs.--debugshows debug logs with a more verbose output
Dump Logs
Dumps all logs from the connected node.PATHis the required path to dump the logs to
--container,-c- Dump logs only from specified container
Resources Allocation Commands
Show Allocation File
Show the resources allocation file.Generate/Update
Generate (or updates if already exists) the allocation file.ENV_FILEPATHis the path to .env file (required parameters are listed in theskale initcommand)
--yesgenerates without additional confirmation-f/--forcerewrites allocation file if it exists
Validate commands
Validate ABI
Checks whether ABI files contain valid JSON data.--jsonshows the validation result in json format
Exit codes
Exit codes conventions for SKALE CLI tools.| Code | Description |
|---|---|
| 0 | Everything is OK |
| 1 | General error exit code |
| 3 | Bad API response |
| 4 | Script execution error |
| 7 | Bad user error |
| 8 | Node state error |
