-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: James Taylor <[email protected]>
- Loading branch information
Showing
2 changed files
with
60 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,34 +19,34 @@ go install ./... | |
## Usage | ||
|
||
``` | ||
Usage: ccmetadata -cert=<path> -key=<path> -mspid=<name> -connection=<path> -channel=<name> [-aslocalhost] [-verbose] <chaincode> | ||
Usage: ccmetadata --cert=<path> --key=<path> --mspid=<name> --connection=<path> --channel=<name> [--aslocalhost] [--verbose] <chaincode> | ||
Get metadata for the specified chaincode name | ||
-aslocalhost | ||
use discovery service as localhost | ||
-cert string | ||
-c, --cert string | ||
certificate file | ||
-channel string | ||
channel name, e.g. mychannel | ||
-connection string | ||
connection profile file | ||
-key string | ||
-k, --key string | ||
private key file | ||
-mspid string | ||
-m, --mspid string | ||
private key file, e.g. Org1MSP | ||
-verbose | ||
-p, --connection string | ||
connection profile file | ||
-n, --channel string | ||
channel name, e.g. mychannel | ||
-l, --aslocalhost | ||
use discovery service as localhost | ||
-v, --verbose | ||
enable verbose logging | ||
``` | ||
|
||
For example, in the _fabric-samples/test-network_ directory: | ||
|
||
``` | ||
ccmetadata -cert=organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected] \ | ||
-key=organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/priv_sk \ | ||
-mspid=Org1MSP \ | ||
-connection=organizations/peerOrganizations/org1.example.com/connection-org1.yaml \ | ||
-channel=mychannel \ | ||
-aslocalhost \ | ||
ccmetadata --cert=organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected] \ | ||
--key=organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/priv_sk \ | ||
--mspid=Org1MSP \ | ||
--connection=organizations/peerOrganizations/org1.example.com/connection-org1.yaml \ | ||
--channel=mychannel \ | ||
--aslocalhost \ | ||
basic | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters