bittensor.cli#

Module Contents#

Classes#

cli

Implementation of the Command Line Interface (CLI) class for the Bittensor protocol.

Attributes#

console

ALIAS_TO_COMMAND

COMMANDS

bittensor.cli.console#
bittensor.cli.ALIAS_TO_COMMAND#
bittensor.cli.COMMANDS#
class bittensor.cli.cli(config=None, args=None)#

Implementation of the Command Line Interface (CLI) class for the Bittensor protocol. This class handles operations like key management (hotkey and coldkey) and token transfer.

Parameters:
static __create_parser__()#

Creates the argument parser for the Bittensor CLI.

Returns:

An argument parser object for Bittensor CLI.

Return type:

argparse.ArgumentParser

static create_config(args)#

From the argument parser, add config to bittensor.executor and local config

Parameters:

args (List[str]) – List of command line arguments.

Returns:

The configuration object for Bittensor CLI.

Return type:

bittensor.config

static check_config(config)#

Checks if the essential configuration exists under different command

Parameters:

config (bittensor.config) – The configuration settings for the CLI.

run()#

Executes the command from the configuration.