Skip to content

Commit

Permalink
Merge pull request #421 from jnjerin/documentation
Browse files Browse the repository at this point in the history
Update documentation for new features
  • Loading branch information
dzikowski authored Oct 27, 2023
2 parents e001cd6 + 5e6b459 commit cf48023
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Features
* Initial support for Kubernetes
* Basic support for `chaincode invoke` command
* Support for `chaincode invoke` command (tls and non-tls)
* Support for `chaincodes list` command (tls and non-tls)

### Fixes
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,25 @@ fablo chaincode upgrade <chaincode-name> <version>
Upgrades chaincode with given name on all relevant peers.
Chaincode directory is specified in Fablo config file.
### chaincode invoke
Invokes chaincode with specified parameters.
```
fablo chaincode invoke <channel-name> <chaincode-name> <peers-domains-comma-separated> <command> [transient]
```
Sample command:
```
fablo chaincode invoke "my-channel1" "chaincode1" "peer0.org1.example.com" '{"Args":["KVContract:put", "name", "Willy Wonka"]}'
```
### chaincodes list
Gets the instantiated or installed chaincodes in the specified channel or peer.
```
fablo chaincodes list <peer> <channel>
```
### Running chaincodes in dev mode
Hyperledger Fabric allows to run peers in [dev mode](https://hyperledger-fabric.readthedocs.io/en/release-2.4/peer-chaincode-devmode.html) in order to allow simple develop of chaincodes.
Expand Down
6 changes: 6 additions & 0 deletions fablo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ printHelp() {
fablo chaincode upgrade <chaincode-name> <version>
Upgrades chaincode on all relevant peers. Chaincode directory is specified in Fablo config file.
fablo chaincode invoke <channel_name> <chaincode_name> <peers_domains_comma_separated> <command> <transient>
Invokes chaincode with specified parameters.
fablo chaincodes list <peer> <channel>
Lists chaincodes installed on specified peer and channel.
fablo channel --help
To list available channel query options which can be executed on running network.
Expand Down

0 comments on commit cf48023

Please # to comment.