Skip to content

Commit

Permalink
Add documents for new options of calculatepackageid
Browse files Browse the repository at this point in the history
Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
  • Loading branch information
satota2 authored and denyeart committed Nov 2, 2021
1 parent b1c9d43 commit 42c99e0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/source/commands/peerlifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ Usage:
Flags:
--connectionProfile string The fully qualified path to the connection profile that provides the necessary connection information for the network. Note: currently only supported for providing peer connection information
-h, --help help for calculatepackageid
-O, --output string The output format for query results. Default is human-readable plain-text. json is currently the only supported format.
--peerAddresses stringArray The addresses of the peers to connect to
--tlsRootCertFiles stringArray If TLS is enabled, the paths to the TLS root cert files of the peers to connect to. The order and number of certs specified should match the --peerAddresses flag
Expand Down Expand Up @@ -522,6 +523,20 @@ A successful command will return the package ID for the packaged chaincode.
myccv1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873
```

* You can also use the `--output` flag to have the CLI format the output as JSON.

```
peer lifecycle chaincode calculatepackageid mycc.tar.gz --output json
```

If successful, the command will return the chaincode package ID as JSON.

```
{
"package_id": "myccv1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873"
}
```

### peer lifecycle chaincode approveformyorg example

Once the chaincode package has been installed on your peers, you can approve
Expand Down
14 changes: 14 additions & 0 deletions docs/wrappers/peer_lifecycle_chaincode_postscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,20 @@ A successful command will return the package ID for the packaged chaincode.
myccv1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873
```

* You can also use the `--output` flag to have the CLI format the output as JSON.

```
peer lifecycle chaincode calculatepackageid mycc.tar.gz --output json
```

If successful, the command will return the chaincode package ID as JSON.

```
{
"package_id": "myccv1:cc7bb5f50a53c207f68d37e9423c32f968083282e5ffac00d41ffc5768dc1873"
}
```

### peer lifecycle chaincode approveformyorg example

Once the chaincode package has been installed on your peers, you can approve
Expand Down

0 comments on commit 42c99e0

Please sign in to comment.