build
Usage: chr build [OPTIONS] COMMAND [ARGS]...
Build an application and create a blockchain configuration
Options:
--show-brid Show blockchain rid
-s, --settings SETTINGS Alternate path for the project settings file
(default: config.yml)
-h, --help Show this message and exit
Commands:
info Calculate blockchain rid from a blockchain configuration file
The build command (chr build
) creates a blockchain configuration for your dapp. By default, it gets placed in the src/build/
folder, but you can change it in the project config file (config.yml
) in compile:target
and compile:source
.
- If you are in the working directory where the
config.yml
file presides, you can run the following command to create the blockchain configuration:
chr build
- Otherwise, you can set a path for the
config.yml
file or specify a different Project Settings file:
chr build --settings config.yml
- To calculate Blockchain RID from a blockchain configuration file, use
chr build info
as follows:
Usage: chr build info [OPTIONS] BCCONFIG
Calculate blockchain rid from a blockchain configuration file
Options:
-h, --help Show this message and exit
Arguments:
BCCONFIG Blockchain configuration file (.gtv/.xml)