2021-01-01 22:29:19 +00:00
|
|
|
# minifab
|
|
|
|
|
2024-02-25 10:46:24 +00:00
|
|
|
> Automate the setup and deployment of Hyperledger Fabric networks.
|
2021-01-01 22:29:19 +00:00
|
|
|
> More information: <https://github.com/hyperledger-labs/minifabric>.
|
|
|
|
|
|
|
|
- Bring up the default Hyperledger Fabric network:
|
|
|
|
|
|
|
|
`minifab up -i {{minifab_version}}`
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Bring down the Hyperledger Fabric network:
|
2021-01-01 22:29:19 +00:00
|
|
|
|
|
|
|
`minifab down`
|
|
|
|
|
|
|
|
- Install chaincode onto a specified channel:
|
|
|
|
|
|
|
|
`minifab install -n {{chaincode_name}}`
|
|
|
|
|
|
|
|
- Install a specific chaincode version onto a channel:
|
|
|
|
|
|
|
|
`minifab install -n {{chaincode_name}} -v {{chaincode_version}}`
|
|
|
|
|
|
|
|
- Initialize the chaincode after installation/upgrade:
|
|
|
|
|
|
|
|
`minifab approve,commit,initialize,discover`
|
|
|
|
|
|
|
|
- Invoke a chaincode method with the specified arguments:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`minifab invoke -n {{chaincode_name}} -p '"{{method_name}}", "{{argument1}}", "{{argument2}}", ...'`
|
2021-01-01 22:29:19 +00:00
|
|
|
|
|
|
|
- Make a query on the ledger:
|
|
|
|
|
|
|
|
`minifab blockquery {{block_number}}`
|
|
|
|
|
|
|
|
- Quickly run an application:
|
|
|
|
|
2023-06-05 14:54:45 +01:00
|
|
|
`minifab apprun -l {{app_programming_language}}`
|