mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 05:01:19 +00:00
Update cheatsheets
This commit is contained in:
41
minifab
Normal file
41
minifab
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# minifab
|
||||
|
||||
> Utility tool that automates the setup and deployment of Hyperledger Fabric networks.
|
||||
> More information: <https://github.com/hyperledger-labs/minifabric>.
|
||||
|
||||
- Bring up the default Hyperledger Fabric network:
|
||||
|
||||
`minifab up -i {{minifab_version}}`
|
||||
|
||||
- Bring down the Hyperledger Fabric network:
|
||||
|
||||
`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:
|
||||
|
||||
`minifab invoke -n {{chaincode_name}} -p '"{{method_name}}", "{{argument1}}", "{{argument2}}", ...'`
|
||||
|
||||
- Make a query on the ledger:
|
||||
|
||||
`minifab blockquery {{block_number}}`
|
||||
|
||||
- Quickly run an application:
|
||||
|
||||
`minifab apprun -l {{app_programming_language}}`
|
||||
Reference in New Issue
Block a user