Adding cli to Hyperledger Fabric¶
Prerequisites¶
To add cli a fully configured Fabric network must be present already, i.e. a Fabric network which has Orderers, Peers, Channels (with all Peers already in the channels). The corresponding crypto materials should also be present in their respective Hashicorp Vault.
NOTE: Addition of cli has been tested on an existing network which is created by Bevel. Networks created using other methods may be suitable but this has not been tested by Bevel team.
Modifying Configuration File¶
Refer this guide for details on editing the configuration file.
While modifying the configuration file(network.yaml
) for adding cli, all the existing organizations should have org_status
tag as existing
and the new organization should have org_status
tag as new
under network.channels
e.g.
network:
channels:
- channel:
..
..
participants:
- organization:
..
..
org_status: new # new for new organization(s)
- organization:
..
..
org_status: existing # existing for old organization(s)
and under network.organizations
as
network:
organizations:
- organization:
..
..
org_status: new # new for new organization(s)
- organization:
..
..
org_status: existing # existing for old organization(s)
The network.yaml
file should contain the specific network.organization
details along with the orderer information.
Run playbook¶
The add-cli.yaml playbook is used to add cli to the existing network. This can be done using the following command