2021-01-01 23:29:19 +01:00
|
|
|
# minifab
|
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
> Automate the setup and deployment of Hyperledger Fabric networks.
|
2021-01-01 23:29:19 +01:00
|
|
|
> More information: <https://github.com/hyperledger-labs/minifabric>.
|
|
|
|
|
|
|
|
- Bring up the default Hyperledger Fabric network:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`minifab up {{[-i|--fabric-release]}} {{minifab_version}}`
|
2021-01-01 23:29:19 +01:00
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
- Bring down the Hyperledger Fabric network:
|
2021-01-01 23:29:19 +01:00
|
|
|
|
|
|
|
`minifab down`
|
|
|
|
|
|
|
|
- Install chaincode onto a specified channel:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`minifab install {{[-n|--chaincode-name]}} {{chaincode_name}}`
|
2021-01-01 23:29:19 +01:00
|
|
|
|
|
|
|
- Install a specific chaincode version onto a channel:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`minifab install {{[-n|--chaincode-name]}} {{chaincode_name}} {{[-v|--chaincode-version]}} {{chaincode_version}}`
|
2021-01-01 23:29:19 +01:00
|
|
|
|
|
|
|
- Initialize the chaincode after installation/upgrade:
|
|
|
|
|
|
|
|
`minifab approve,commit,initialize,discover`
|
|
|
|
|
|
|
|
- Invoke a chaincode method with the specified arguments:
|
|
|
|
|
2025-05-03 05:57:20 +03:00
|
|
|
`minifab invoke {{[-n|--chaincode-name]}} {{chaincode_name}} {{[-p|--chaincode-parameters]}} '"{{method_name}}", {{"argument1", "argument2", ...}}'`
|
2021-01-01 23:29:19 +01:00
|
|
|
|
|
|
|
- Make a query on the ledger:
|
|
|
|
|
|
|
|
`minifab blockquery {{block_number}}`
|
|
|
|
|
|
|
|
- Quickly run an application:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`minifab apprun {{[-l|--chaincode-language]}} {{app_programming_language}}`
|