diff --git a/docs/source/commands/peerlifecycle.md b/docs/source/commands/peerlifecycle.md index 759c1317c7e..090b3a501f1 100644 --- a/docs/source/commands/peerlifecycle.md +++ b/docs/source/commands/peerlifecycle.md @@ -116,7 +116,7 @@ Global Flags: Install a chaincode on a peer. Usage: - peer lifecycle chaincode install [flags] + peer lifecycle chaincode install [packageFiles] [flags] 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 diff --git a/internal/peer/lifecycle/chaincode/install.go b/internal/peer/lifecycle/chaincode/install.go index 5424e69297f..685835bfd58 100644 --- a/internal/peer/lifecycle/chaincode/install.go +++ b/internal/peer/lifecycle/chaincode/install.go @@ -55,7 +55,7 @@ func (i *InstallInput) Validate() error { // InstallCmd returns the cobra command for chaincode install. func InstallCmd(i *Installer, cryptoProvider bccsp.BCCSP) *cobra.Command { chaincodeInstallCmd := &cobra.Command{ - Use: "install", + Use: "install [packageFiles]", Short: "Install a chaincode.", Long: "Install a chaincode on a peer.", ValidArgs: []string{"1"},