[][src]Crate sc_cli

Substrate CLI library.

Re-exports

pub use arg_enums::*;
pub use structopt;

Modules

arg_enums
utils

subcommand utilities

Macros

with_crypto_scheme

Allows for calling $method with appropriate crypto impl.

Structs

BlockNumberOrHash

Wrapper type that is either a Hash or the number of a Block.

BuildSpecCmd

The build-spec command used to build a specification.

BuildSyncSpecCmd

The build-sync-spec command used to build a chain spec that contains a light client state so that light clients can sync faster.

CheckBlockCmd

The check-block command used to validate blocks.

CryptoSchemeFlag

Optional flag for specifying crypto algorithm

DatabaseParams

Parameters for block import.

ExecutionStrategiesParams

Execution strategies parameters.

ExportBlocksCmd

The export-blocks command used to export blocks.

ExportStateCmd

The export-state command used to export the state of a given block into a chain spec.

GenerateCmd

The generate command

GenerateNodeKeyCmd

The generate-node-key command

GenericNumber

Wrapper type of String that holds an unsigned integer of arbitrary size, formatted as a decimal.

ImportBlocksCmd

The import-blocks command used to import blocks.

ImportParams

Parameters for block import.

InsertCmd

The insert command

InspectKeyCmd

The inspect command

InspectNodeKeyCmd

The inspect-node-key command

KeystoreParams

Parameters of the keystore

NetworkParams

Parameters used to create the network configuration.

NetworkSchemeFlag

Optional flag for specifying network scheme

NodeKeyParams

Parameters used to create the NodeKeyConfig, which determines the keypair used for libp2p networking.

OffchainWorkerParams

Offchain worker related parameters.

OutputTypeFlag

Optional flag for specifying output type

PruningParams

Parameters to define the pruning mode

PurgeChainCmd

The purge-chain command used to remove the whole chain.

RevertCmd

The revert command used revert the chain to a previous state.

RunCmd

The run command used to run a node.

Runner

A Substrate CLI runtime that can be used to run a node or a command

RuntimeVersion

Runtime version. This should not be thought of as classic Semver (major/minor/tiny). This triplet have different semantics and mis-interpretation could cause problems. In particular: bug fixes should result in an increment of spec_version and possibly authoring_version, absolutely not impl_version since they change the semantics of the runtime.

SharedParams

Shared parameters used by all CoreParams.

SignCmd

The sign command

TransactionPoolParams

Parameters used to create the pool configuration.

VanityCmd

The vanity command

VerifyCmd

The verify command

Enums

Error

Error type for the CLI.

KeySubcommand

Key utilities for the cli.

Role

Role of the local node.

Traits

ChainSpec

Common interface of a chain specification.

CliConfiguration

A trait that allows converting an object to a Configuration

DefaultConfigurationValues

Default configuration values used by Substrate

SubstrateCli

Substrate client CLI

Functions

build_runtime

Build a tokio runtime with all features

generate_node_name

Generate a valid random name for the node

init_logger

Initialize the global logger

secret_string_from_str

Parse a sercret string, returning a displayable error.

Type Definitions

Result

Result type alias for the CLI.