Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 3.63 KB

config.md

File metadata and controls

68 lines (48 loc) · 3.63 KB

veritise-node config

Command used to set up the configuration files and the nemesis block for the current network

veritise-node config

Command used to set up the configuration files and the nemesis block for the current network

USAGE
  $ veritise-node config

OPTIONS
  -a, --assembly=assembly          The assembly that defines the node(s) layout. It can be provided via custom preset or
                                   cli parameter. If not provided, the value is resolved from the target/preset.yml
                                   file. Options are: dual, peer, api, demo, multinode, services, my-custom-assembly.yml
                                   (advanced).

  -c, --customPreset=customPreset  External preset file. Values in this file will override the provided presets.

  -h, --help                       It shows the help of this command.

  -p, --preset=preset              The network preset. It can be provided via custom preset or cli parameter. If not
                                   provided, the value is resolved from the target/preset.yml file. Options are:
                                   bootstrap, testnet, mainnet, my-custom-network.yml (advanced, only for custom
                                   networks).

  -r, --reset                      It resets the configuration generating a new one.

  -t, --target=target              [default: target] The target folder where the veritise-node network is generated

  -u, --user=user                  [default: current] User used to run docker images when creating configuration files
                                   like certificates or nemesis block. "current" means the current user.

  --logger=logger                  [default: Console,File] The loggers the command will use. Options are:
                                   Console,File,Silent. Use ',' to select multiple loggers.

  --noPassword                     When provided, Bootstrap will not use a password, so private keys will be stored in
                                   plain text. Use with caution.

  --offline                        If --offline is used, Bootstrap resolves the configuration without querying the
                                   running network.

  --password=password              A password used to encrypt and decrypt private keys in preset files like
                                   addresses.yml and preset.yml. Bootstrap prompts for a password by default, can be
                                   provided in the command line (--password=XXXX) or disabled in the command line
                                   (--noPassword).

  --report                         It generates reStructuredText (.rst) reports describing the configuration of each
                                   node.

  --upgrade                        It regenerates the configuration reusing the previous keys. Use this flag when
                                   upgrading the version of bootstrap to keep your node up to date without dropping the
                                   local data. Backup the target folder before upgrading.

EXAMPLES
  $ veritise-node config -p bootstrap
  $ veritise-node config -p testnet -a dual --password 1234
  $ veritise-node config -p mainnet -a peer -c custom-preset.yml
  $ veritise-node config -p mainnet -a my-custom-assembly.yml -c custom-preset.yml
  $ veritise-node config -p my-custom-network.yml -a dual -c custom-preset.yml
  $ echo "$MY_ENV_VAR_PASSWORD" | veritise-node config -p testnet -a dual

See code: src/commands/config.ts