Skip to content

Commit d914428

Browse files
author
Seung Woo Kim
committed
Add parameter descriptions for CLI options
1 parent 4c8ba08 commit d914428

File tree

1 file changed

+46
-59
lines changed

1 file changed

+46
-59
lines changed

docs/configuration.rst

Lines changed: 46 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CodeChain can be configured with either CLI options or a config file. When it co
55

66
CLI options can be listed by running the command ``$codechain --help``. By using the CLI options, or custom config files, the user can overwrite config.dev.toml's configurations.
77

8-
98
Config File
109
===========
1110
The default preset ``config.dev.toml`` file can be located in ``codechain/config/presets/config.dev.toml``.
@@ -33,34 +32,34 @@ CLI Options for CodeChain client
3332
================================
3433
::
3534

36-
--config-path
35+
--config-path = [PATH]
3736
Specify the certain config file path that you want to use to configure CodeChain to your needs.
3837

39-
--port
38+
--port = [PORT]
4039
Listen for connections on PORT. (default: 3485)
4140

42-
--bootstrap-addresses
41+
--bootstrap-addresses = [BOOTSTRAP_ADDRESSES]
4342
Bootstrap addresses to connect.
4443

4544
--no-network
4645
Do not open network socket.
4746

48-
--min-peers
47+
--min-peers = [NUM]
4948
Sets the minimum number of connections the user would like. (default: 10)
5049

51-
--max-peers
50+
--max-peers = [NUM]
5251
Sets the maximum number of connections the user would like. (default: 30)
5352

54-
--instance-id
55-
Specify instance id for logging.
53+
--instance-id = [ID]
54+
Specify instance id for logging. Used when running multiple instances of CodeChain.
5655

5756
--quiet
5857
Do not show any synchronization information in the console.
5958

60-
--chain
59+
--chain = [CHAIN]
6160
Sets the blockchain type out of solo, solo_authority, tendermint or a path to chain spec file. (default: tendermint)
6261

63-
--db-path
62+
--db-path = [PATH]
6463
Specify the database directory path.
6564

6665
--no-sync
@@ -69,73 +68,61 @@ CLI Options for CodeChain client
6968
--no-parcel-relay
7069
Do not relay parcels.
7170

72-
--jsonrpc-port
71+
--jsonrpc-port = [PORT]
7372
Listen for rpc connections on PORT. (default: 8080)
7473

7574
--no-jsonrpc
7675
Do not run jsonrpc.
7776

78-
--secret-key
77+
--secret-key = [KEY]
7978
Secret key used by node.
8079

81-
--author
82-
Specify the block author (aka "coinbase") address for sending block rewards from
80+
--author = [ADDRESS]
81+
Specify the block's author (aka "coinbase") address for sending block rewards from
8382
sealed blocks.
8483

85-
--engine-signer
84+
--engine-signer = [ADDRESS]
8685
Specify the address which should be used to sign consensus messages and
8786
issue blocks.
8887

8988
--no-discovery
90-
Do not use discovery.
91-
92-
--discovery
93-
p2p discovery extension. Options are kademlia and unstructured. (default: unstructured)
89+
Do not use discovery. No automated peer finding.
9490

95-
--kademlia-alpha
96-
Degree of parallelism in Kademlia.
91+
--discovery = "kademlia" | "unstructured"
92+
Decides which p2p discovery extension to use. Options are kademlia and unstructured.
93+
(default: unstructured)
9794

98-
--discovery-bucket-size
99-
Bucket size for discovery.
95+
--discovery-bucket-size = [NUM]
96+
Bucket size for discovery. Choose how many addresses to exchange at a time
97+
during discovery.
10098

101-
--discovery-refresh
102-
Refresh timeout of discovery (ms). (Conflicts with: --no-discovery)
99+
--discovery-refresh = [ms]
100+
Refresh timeout of discovery (ms). It may conflict with:`` --no-discovery``.
103101

104102
Subcommands
105103

106-
CodeChain has a subcommand called ``account``. ``amount``is the account managing commands of CodeChain, and also has subcommands of its own, which are the following:
104+
CodeChain has a subcommand called ``account``. ``amount``is the account managing commands
105+
of CodeChain, and also has subcommands of its own, which are the following:
107106

108107
Subcommands of codechain account:
109-
--create
110-
about: create account
111-
args:
112-
- passphrase:
113-
short: p
114-
long: passphrase
115-
help: account passphrase
116-
takes_value: true
117-
--import
118-
about: import private key
119-
args:
120-
- passphrase:
121-
short: p
122-
long: passphrase
123-
help: account passphrase
124-
takes_value: true
125-
- raw-key:
126-
short: k
127-
long: raw-key
128-
help: key to import
129-
takes_value: true
130-
--list
131-
about: list managed accounts
132-
--lock
133-
about: lock account
134-
args:
135-
- address:
136-
help: address to lock
137-
--unlock
138-
about: unlock account
139-
args:
140-
- address:
141-
help: address to unlock
108+
create
109+
create account
110+
--passphrase = []
111+
account passphrase
112+
113+
import
114+
import private key
115+
--passphrase = []
116+
account passphrase
117+
118+
--raw-key = []
119+
key to import
120+
121+
list
122+
list managed accounts
123+
124+
lock
125+
lock account
126+
127+
unlock
128+
unlock account

0 commit comments

Comments
 (0)