Cybertensor CLI
After you install Cybertensor you can use ctcli command line interface (CLI) to stake or unstake funds, run miners, check network state, and even deploy, analyze, and interface with the Cybertensor network. This section presents the command and subcommand options available in ctcli CLI.
Usage
Wallets
Show overview
Displays comprehensive information about each neuron associated with the user's wallets, including both hotkeys and coldkeys. It is especially useful for users managing multiple accounts or looking for a summary of their network activities and stake distributions.
Example
With example options:
Run,
for full options.
List wallets
- Lists all wallets locally stored on your machine under path
--wallet.path. - Required as destinations for
ctcli transfer
Check balance in all wallets
Lists the balances in all the wallets in the user's configuration directory, showing the wallet name, coldkey address, and the free and staked balances.
Check balance in a single wallet
or you can specify the wallet's name in the terminal prompt:
New coldkey
Create a new wallet with encrypted coldkey:
New hotkey
Create a hotkey associated with a wallet:
Regenerate hotkey
Regenerate a hotkey from mnemonic:
Regenerate coldkey
Regenerate a wallet encrypted coldkey file from mnemonic or seed:
Regenerate coldkeypub
Regenerate a wallet with just the public seed of your coldkey:
Subnets
List subnets
Lists the existing subnets and shows their detailed information. In addition to the subnet details, the command fetches delegate information and provides the name of the subnet owner where available. If the owner's name is not available, the owner's address is displayed.
Defaults to subnets on the mainchain.
Use,
to see the available OPTIONS.
Show lock cost
Shows the locking cost required for creating a new subnet on the Cybertensor network. This command is designed to provide users with the current cost of registering a new subnet. If the cost is unappealing currently, check back in a day or two to see if it has improved.
Use,
to see the available OPTIONS.
Create subnet
:::tip For advanced users only This command is intended for advanced users of the Cybertensor network who wish to contribute by adding new subnets. It requires a clear understanding of the Cybertensor network's functioning and the roles of subnets. Users should ensure that they have secured their wallet and are aware of the implications of adding a new subnetwork to the Cybertensor ecosystem. :::
Creates and registers a new subnet. This involves interaction with the user's wallet and the Cybertensor contract. It ensures that the user has the necessary credentials and configurations to successfully register a new subnet.
Use,
to see the available OPTIONS.
Register
Registers a new neuron using the recycle_register option. Adds a new neuron to the specified subnet --netuid.
:::caution alert
The command option recycle_register is removed. Instead, use the above register option.
:::
To register in a subnet of netuid of 1:
Use,
to see the available OPTIONS.
PoW registration
Registers a neuron on the Cybertensor network using Proof of Work (PoW). This method is an alternative registration process that leverages computational work for securing a neuron's place on the network.
Example:
Use,
to see the available OPTIONS.
:::caution This command is for users with adequate computational resources to participate in PoW registration. It requires a sound understanding of the network's operations and PoW mechanics. Users should ensure their systems meet the necessary hardware and software requirements, particularly when opting for CUDA-based GPU acceleration. :::
Show metagraph
Shows the metagraph of the desired subnet. Defaults to subnets on the mainchain.
Use,
to see the available OPTIONS.
Show hyperparameters
Shows the current hyperparameters for the desired subnet. This command is useful for users who wish to understand the configuration and operational parameters of a particular subnet.
Use,
to see the available OPTIONS.
Transfers and staking
Transfer
- Transfers PUSSY from a wallet coldkey to another wallet public key address.
Stake
Stake PUSSY from the coldkey balance to the hotkey staking account.
Unstake
Remove stake PUSSY from the hotkey staking account and add it to the coldkey.
Delegation
See available delegates
List all active delegates available for delegated PUSSY. Displays the below output:
Delegate
Delegate PUSSY from the coldkey balance to the hotkey staking account of a delegate.
Set delegate take
Sets the take percentage of the delegate.
To set the delegate take at 10%:
The --take value must be a floating point number between 0 and 1.
To use a specific wallet:
Undelegate
Remove PUSSY from the hotkey balance of delegate you have previously delegated to.
My delegates
Show all your previously made delegations.
:::tip
Use --all option to show delegations across all your wallets.
:::
Root network
Root network list
Lists all the root network members. Shows the top 64 validators in the root network.
Root register
Elect to join the root subnet with your nominated hotkey.
