Hyperledger Fabric2.3 中 Peer指令合集
Peer指令格式 peer [command] [flags]
Available Commands/可用指令
peer后面可以跟的commands总共有:
chaincode
channel
help
lifecycle chaincode
node
snapshot
version
peer chaincode [command] [flags]
command合集
peer chaincode 后面可以跟的command有:
command | 原文 | 翻译 |
---|---|---|
install |
Install a chaincode. | 安装链码 |
instantiate |
Deploy the specified chaincode to the network. | 实例化部署指定chaincode到网络 |
invoke |
Invoke the specified chaincode. | 调用指定的链码 |
list |
Get the instantiated chaincodes on a channel or installed chaincodes on a peer. | 获取通道上的实例化链码或对等点上安装的链码。 |
package |
Package a chaincode | 打包一个链码 |
query |
Query using the specified chaincode. | 使用指定的链码查询查询 |
signpackage |
Sign the specified chaincode package | 对指定的链码包进行签名 |
upgrade |
Upgrade chaincode. | 升级链码 |
Flag合集
peer chaincode command 后面可以跟的flags有:
Flags | 原文 | 翻译 |
---|---|---|
--cafile string |
Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint | 包含排序端点的 PEM 编码可信证书的文件路径 |
--certfile string |
Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint | 包含 PEM 编码的 X509 公钥的文件路径,用于与排序端点相互的TLS通信 |
--clientauth |
Use mutual TLS when communicating with the orderer endpoint | 与排序节点通信时使用双向 TLS |
--connTimeout duration |
Timeout for client to connect (default 3s) | 客户端连接超时(默认 3s) |
--keyfile string |
Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint | 包含 PEM 编码私钥的文件路径,用于与排序端点的相互 TLS 通信 |
-o, --orderer string |
Ordering service endpoint | 排序节点地址 |
--ordererTLSHostnameOverride string |
The hostname override to use when validating the TLS connection to the orderer | 验证TLS连接时使用的排序节点主机名 |
--tls |
Use TLS when communicating with the orderer endpoint | 与排序节点通信时使用 TLS |
--tlsHandshakeTimeShift duration |
The amount of time to shift backwards for certificate expiration checks during TLS handshakes with the orderer endpoint | 在与排序节点的 TLS 握手期间为证书过期检查向后移动的时间量 |
--transient string |
Transient map of arguments in JSON encoding | 编码中参数的瞬态映射 |
peer channel [command]
command合集
peer channel 后面可以跟的command有:
command | 原文 | 翻译 |
---|---|---|
create |
Create a channel | 创建一个通道 |
fetch |
Fetch a block | 获取一个块 |
getinfo |
get blockchain information of a specified channel. | 获取指定通道的区块链信息 |
join |
Joins the peer to a channel. | 将 peer 加入频道 |
joinbysnapshot |
Joins the peer to a channel by the specified snapshot | 通过指定快照将peer加入频道 |
joinbysnapshotstatus |
Query if joinbysnapshot is running for any channel | 查询 joinbysnapshot 是否正在为任何通道运行 |
list |
List of channels peer has joined. | peer已加入的通道列表 |
signconfigtx |
Signs a configtx update. | 签署 configtx 更新 |
update |
Send a configtx update. | 发送 configtx 更新 |
peer lifecycle chaincode [command]
command合集
peer lifecycle chaincode 后面可以跟的command有:
approveformyorg Approve the chaincode definition for my org.
checkcommitreadiness Check whether a chaincode definition is ready to be committed on a channel.
commit Commit the chaincode definition on the channel.
getinstalledpackage Get an installed chaincode package from a peer.
install Install a chaincode.
package Package a chaincode
queryapproved Query an org’s approved chaincode definition from its peer.
querycommitted Query the committed chaincode definitions by channel on a peer.
queryinstalled Query the installed chaincodes on a peer.
command | 原文 | 翻译 |
---|---|---|
approveformyorg |
Approve the chaincode definition for my org. | 批准链码定义 |
checkcommitreadiness |
Check whether a chaincode definition is ready to be committed on a channel. | 检查链码是否可以向通道提交 |
commit |
Commit the chaincode definition on the channel. | 向通道提交链码定义 |
getinstalledpackage |
Get an installed chaincode package from a peer. | 从peer节点获取已经安装的链码包 |
install |
Install a chaincode. | 安装链码 |
package |
Package a chaincode | 打包链码 |
queryapproved |
Query an org’s approved chaincode definition from its peer. | 从它的peer查询组织已批准的链码实例 |
querycommitted |
Query the committed chaincode definitions by channel on a peer. | 按通道查询已经提交的链码定义 |
queryinstalled |
Query the installed chaincodes on a peer. | 查询指定peer节点上已经安装的链码 |
peer node [command]
command合集
peer node 后面可以跟的command有:
command | 原文 | 翻译 |
---|---|---|
pause |
Pauses a channel on the peer. | 暂停一个通道 |
rebuild-dbs |
Rebuilds databases. | 重建数据库 |
reset |
Resets the node. | 重设节点 |
resume |
Resumes a channel on the peer. | 继续通道 |
rollback |
Rolls back a channel. | 回滚一个通道 |
start |
Starts the node. | 启动一个节点 |
upgrade-dbs |
Upgrades databases. | 升级数据库 |
peer snapshot [command]
command合集
peer snapshot 后面可以跟的command有:
cancelrequest Cancel a request for a snapshot at the specified block.
listpending List pending requests for snapshots.
submitrequest Submit a request for a snapshot at the specified block.
command | 原文 | 翻译 |
---|---|---|
cancelrequest |
Cancel a request for a snapshot at the specified block. | 取消对指定块的快照的请求 |
listpending |
List pending requests for snapshots. | 列出未决的快照请求 |
submitrequest |
Submit a request for a snapshot at the specified block. | 提交指定块的快照请求 |