Commands relating to Lisk Core blockchain data.
lisk-core blockchain:download
lisk-core blockchain:export
lisk-core blockchain:hash
lisk-core blockchain:import FILEPATH
lisk-core blockchain:reset
Download snapshot from .
USAGE
$ lisk-core blockchain:download
OPTIONS
-n, --network=network [default: mainnet] Default network config to use. Environment variable "LISK_NETWORK" can also
be used.
-o, --output=output Directory path to specify where snapshot is downloaded. By default outputs the files to current
working directory.
-u, --url=url The url to the snapshot.
EXAMPLES
download
download --network betanet
download --url https://snapshots.lisk.com/mainnet/blockchain.db.tar.gz --output ./downloads
See code: dist/commands/blockchain/download.ts
Export to .
USAGE
$ lisk-core blockchain:export
OPTIONS
-d, --data-path=data-path Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH"
can also be used.
-o, --output=output The output directory. Default will set to current working directory.
EXAMPLES
blockchain:export
blockchain:export --data-path ./data --output ./my/path/
See code: dist/commands/blockchain/export.ts
Generate SHA256 hash from .
USAGE
$ lisk-core blockchain:hash
OPTIONS
-d, --data-path=data-path Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH"
can also be used.
EXAMPLES
blockchain:hash
blockchain:hash --data-path ./data
See code: dist/commands/blockchain/hash.ts
Import from .
USAGE
$ lisk-core blockchain:import FILEPATH
ARGUMENTS
FILEPATH Path to the gzipped blockchain data.
OPTIONS
-d, --data-path=data-path Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH"
can also be used.
-f, --force Delete and overwrite existing blockchain data
EXAMPLES
blockchain:import ./path/to/blockchain.tar.gz
blockchain:import ./path/to/blockchain.tar.gz --data-path ./lisk/
blockchain:import ./path/to/blockchain.tar.gz --data-path ./lisk/ --force
See code: dist/commands/blockchain/import.ts
Reset the blockchain data.
USAGE
$ lisk-core blockchain:reset
OPTIONS
-d, --data-path=data-path Directory path to specify where node data is stored. Environment variable "LISK_DATA_PATH"
can also be used.
-y, --yes Skip confirmation prompt.
EXAMPLES
blockchain:reset
blockchain:reset --data-path ./lisk
blockchain:reset --yes
See code: dist/commands/blockchain/reset.ts