solochain_template_node/
cli.rs
1#[derive(Debug, clap::Parser)]
2pub struct Cli {
3 #[command(subcommand)]
4 pub subcommand: Option<Subcommand>,
5
6 #[clap(flatten)]
7 pub run: sc_cli::RunCmd,
8}
9
10#[derive(Debug, clap::Subcommand)]
11#[allow(clippy::large_enum_variant)]
12pub enum Subcommand {
13 #[command(subcommand)]
15 Key(sc_cli::KeySubcommand),
16
17 #[deprecated(
21 note = "build-spec command will be removed after 1/04/2026. Use export-chain-spec command instead"
22 )]
23 BuildSpec(sc_cli::BuildSpecCmd),
24
25 ExportChainSpec(sc_cli::ExportChainSpecCmd),
27
28 CheckBlock(sc_cli::CheckBlockCmd),
30
31 ExportBlocks(sc_cli::ExportBlocksCmd),
33
34 ExportState(sc_cli::ExportStateCmd),
36
37 ImportBlocks(sc_cli::ImportBlocksCmd),
39
40 PurgeChain(sc_cli::PurgeChainCmd),
42
43 Revert(sc_cli::RevertCmd),
45
46 #[command(subcommand)]
48 Benchmark(frame_benchmarking_cli::BenchmarkCmd),
49
50 ChainInfo(sc_cli::ChainInfoCmd),
52}