Skip to content

Latest commit

 

History

History
122 lines (84 loc) · 3.53 KB

blockchain.md

File metadata and controls

122 lines (84 loc) · 3.53 KB

lisk-core blockchain

Commands relating to Lisk Core blockchain data.

lisk-core blockchain:download

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

lisk-core blockchain:export

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

lisk-core blockchain:hash

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

lisk-core blockchain:import FILEPATH

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

lisk-core blockchain:reset

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