Search code examples
hyperledger-fabricblockchainhyperledgerhyperledger-composer

hyperledger composer network update


Is anyone have an idea why composer network update is not listed to available commands for composer network? is it already deprecated? If yes, what is the substitute command for it? Thanks in advance.

composer network

Composer network command

Commands: composer network download [options] Downloads a business network from the Hyperledger Fabric, does not undeploy composer network install [options] Installs a business network archive to Hyperledger Fabric composer network list [options] List the contents of a business network composer network loglevel [options] Change the logging level of a business network composer network ping [options] Test a connection to a business network composer network reset [options] Resets a business network composer network start [options] Starts a specific version of a business network that is already installed to Hyperledger Fabric composer network upgrade [options] Upgrades to a specific version of a business network that is already installed to Hyperledger Fabric

Options: --help Show help [boolean] -v, --version Show version number [boolean]


Solution

  • In composer version .19 they changed the command for update.

    After changing you files change the version in package.json. Then use the below command to upgrade :

    composer network upgrade -c CARD-NAME -n NETWORK-NAME -V NETWORK-VERSION