Update Aug 29th 2019: Hyperledger Composer has been deprecated. Please see the README for more information.

Hyperledger Composer Network Upgrade CLI

Hyperledger Composer Network Upgrade


The composer network upgrade utility is used to upgrade the Hyperledger Composer business network to a new version.

composer network upgrade -n <business-network-name> -V <business-network-version> -c <business-network-card>

composer network upgrade upgrades the named Hyperledger Composer business network. Before running the composer network upgrade command, a new version of the Hyperledger Composer business network must have been installed to a blockchain node by using the composer network install command.

Options

composer network upgrade [options]

Options:
  --help                     Show help  [boolean]
  -v, --version              Show version number  [boolean]
  --card, -c                 The cardname to use to upgrade the network  [string] [required]
  --networkName, -n          Name of the business network to upgrade  [required]
  --networkVersion, -V       Version of the business network to upgrade to  [required]
  --option, -o               Options that are specific to connection. Multiple options are specified by repeating this option  [string]
  --optionsFile, -O          A file containing options that are specific to connection  [string]

Please refer to Connector specific information for more information about connecting to Hyperledger Fabric v1.2.

Javascript API Example

const NetworkUpgrade = require('composer-cli').Network.Upgrade;

let options = {
  networkName: 'tutorial-network',
  networkVersion: '0.0.1',
  card: 'PeerAdmin@fabric-network'
};

NetworkUpgrade.handler(options);