Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

How does the Substrate Node Template deal with command line arguments?

I'm reading the code of Substrate Node Template, trying to get a deeper understanding of the implementation of it. However, I stuck when I tried to find out how the node deals with command line ...
Fu Endericedragon's user avatar
0 votes
0 answers
29 views

when running a validating nodes, firewall setting is essential?

when running a nodes, firewall is essential? i used this command sudo ufw allow 3033/tpc but it`s result is "ERROR: Bad port" what`s the problem? can i just done "sudo ufw enable" ...
jay p's user avatar
  • 61
5 votes
1 answer
143 views

trait bounds not satisfied with Executive::try_runtime_upgrade()

I'm attempting to integrate try-runtime into substrate-contracts-node and I get the following error when I call Executive::try_runtime_upgrade(): Compiling contracts-node-runtime v0.24.0 (/Users/bruno/...
Bruno's user avatar
  • 8,260
2 votes
1 answer
32 views

Configure offchain worker with command line argument

Is configuring an off-chain worker with a command line argument possible? e.g. ./target/release/cere --dev --alice --my-custom-url "http://my-..." If not what are the other options?
Maksim Ramanenkau's user avatar
0 votes
0 answers
39 views

Why can't we pass the path to a database other than RocksDB (e.g. ParityDB) to the Substrate Service?

The Substrate Client has a: Substrate CLI here, where we're given the option to choose to use either RocksDB or ParityDB Substrate Service (sc-service) where here it states: "The RocksDB ...
Luke Schoen's user avatar
  • 2,312
0 votes
1 answer
79 views

Why can we limit the memory the RocksDB database cache can use but not for ParityDB?

In the Substrate CLI why can we limit the memory that the RocksDB database cache can use if we choose to use it here, but we're not given the option to limit the memory that ParityDB uses if we choose ...
Luke Schoen's user avatar
  • 2,312
3 votes
1 answer
48 views

create a dev chainspec with specific test users

I'd like to use the Polkadot CLI to create a chainspec with specific user balances pre-seeded. I'd like to be able to do this for any of the dev runtimes. In the case of the polkadot dev runtime, I ...
Harry Solovay's user avatar
1 vote
1 answer
21 views

Custom Metadata Command Returnning Incorrect Data

I have written a command that exports the metadata at the CLI which /should/ duplicate the results of state_getMetadata. Full Source Code: https://github.com/LibertyDSNP/frequency/blob/main/node/cli/...
Wil W's user avatar
  • 433
4 votes
1 answer
78 views

How is the logging CLI implemented in substrate?

Often I've used the flags like -lruntime=debug or -lparachain=debug without really understanding how they work. I know that the env_logger crate allows you to specify which crates to emit log messages ...
Purple_Turtle's user avatar
7 votes
0 answers
57 views

`check-blocks` command not re-executing the block

I am confused about the behavior of the check-block command. I was expecting it to re-execute the block, but it seems like this is not the case. For example, the following command: ➜ ~ RUST_LOG=...
kianenigma's user avatar
  • 2,719
1 vote
1 answer
280 views

Cannot run benchmarking: "Did not find the benchmarking metadata."

I have problems with trying to benchmark my custom pallet. I tried different scenarios and received different errors: Using the same binary: I built my node with cargo build --release --features ...
pmikolajczyk41's user avatar
0 votes
2 answers
58 views

Do we have CLI support for ink! smart contract deployment on configured test-net?

I want to deploy my contract on Rococo contract test net. Apart from polkadot.js/apps, do we have any other way to upload and then instantiate the contract? My goal is to create a script for the ...
crypto sahdev's user avatar
-1 votes
2 answers
88 views

How to generate node information?

How can i generate this information while starting my chain???
Amit Kumar Yadav's user avatar
1 vote
0 answers
28 views

RPC enabled? CLI configuration?

I need to determine whether RPCs are enabled in a OCW. I am thinking that I could check rpc_external and/or ws_external in sc_cli::commands::run_cmd but (1) is this the best way and (2) if it is, how ...
Robert La Ferla's user avatar
0 votes
1 answer
254 views

Calling an extrinsic using the polkadot-js-api CLI tool

How can I call an extrinsic on a palette using the polkadot-js-api CLI tool? I don't see much documentation on the tool nor does the --help provide much detail. Could I use this tool for this ...
Robert La Ferla's user avatar
0 votes
1 answer
347 views

What is the best way to find the genesis hash for a chain?

My understanding is the following terms which are used in different contexts and applications all refer to the same thing: "genesis hash", "network key", "chain id". I ...
Alex Sed's user avatar
  • 580
3 votes
1 answer
118 views

How to see the hardware benchmark results?

Substrate has introduced a flag called --no-hardware-benchmarks to disable automatic hardware benchmarks. This implies if the flag is not set, the benchmark should run automatically at startup and ...
Alex Sed's user avatar
  • 580
3 votes
1 answer
75 views

Calling CLI subcommand through different terminal after running the node

I'm trying to set some off-chain storage through a different terminal using a custom subcommand after starting up the node. Question here is: Is there any way to call the custom CLI subcommand in the ...
Pawan Bisht's user avatar
10 votes
2 answers
113 views

What does the `--dev` flag do?

I get a different set of behaviors when running my node with --dev than when I run my node with my own custom setup. What is happening in the background?
Shawn Tabrizi's user avatar
  • 15.9k
7 votes
2 answers
175 views

What is the internal logic of `--force-authoring` flag?

From where do I get the internal logic of --force-authoring flag? Here is my scenario: I've added a custom chain-spec that is similar to the default one where we are setting the environment for --dev ...
Pawan Bisht's user avatar
10 votes
3 answers
96 views

What does the `--tmp` flag do when running the Substrate Node Template?

The Substrate Node Template says in the "Run" section of the README, that the single-node development chain will start with "non-persistent state" if run with the following command:...
tarrball's user avatar
  • 225