Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation for new features #421

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading