企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 1. 释义 将指定的链码打包为CDS(Chaincode Deployment Spec)格式,并存入节点上指定的路径。 ## 2. 使用方法 ``` ~$ peer chaincode install [flags] ``` ## 3. 命令标志 ``` --connectionProfile string Connection profile that provides the necessary connection information for the network. Note: currently only supported for providing peer connection information -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -h, --help help for install -l, --lang string Language of chaincode, either "golang" (default), "node", or "java" -n, --name string Name of the chaincode -p, --path string Path to chaincode, for "golang" use relative path from $GOPATH/src, for "node" or "java" use absolute path --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 -v, --version string Version of the chaincode specified in install/instantiate/upgrade commands ``` 全局标志: ``` --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --connTimeout duration Timeout for client to connect (default 3s) --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding ```