github.com/defanghe/fabric@v2.1.1+incompatible/docs/wrappers/peer_lifecycle_chaincode_preamble.md (about) 1 # peer lifecycle chaincode 2 3 The `peer lifecycle chaincode` subcommand allows administrators to use the 4 Fabric chaincode lifecycle to package a chaincode, install it on your peers, 5 approve a chaincode definition for your organization, and then commit the 6 definition to a channel. The chaincode is ready to be used after the definition 7 has been successfully committed to the channel. For more information, visit 8 [Fabric chaincode lifecycle](../chaincode_lifecycle.html). 9 10 *Note: These instructions use the Fabric chaincode lifecycle introduced in the 11 v2.0 release. If you would like to use the old lifecycle to install and 12 instantiate a chaincode, visit the [peer chaincode](peerchaincode.html) command 13 reference.* 14 15 ## Syntax 16 17 The `peer lifecycle chaincode` command has the following subcommands: 18 19 * package 20 * install 21 * queryinstalled 22 * getinstalledpackage 23 * approveformyorg 24 * checkcommitreadiness 25 * commit 26 * querycommitted 27 28 Each peer lifecycle chaincode subcommand is described together with its options in its own 29 section in this topic.