Skip to content

CLI commands for chaincode deployment #202

@bestbeforetoday

Description

@bestbeforetoday

As a blockchain administrator
I want to have CLI commands to deploy smart contracts (chaincode)
So that I can script or drive ad-hoc deployment of chaincode from the command-line

The existing Fabric peer lifecycle chaincode CLI commands are implemented within the Fabric core codebase, and include all of the Fabric peer runtime. These administrative capabilities should be separated from the Fabric core and instead implemented as light-weight CLI commands based on the fabric-admin-sdk.

A previous attempt to decouple the CLI commands from the Fabric core can be found at github.com/hyperledger/fabric-cli. This is based on the legacy Go SDK, which is no longer supported and also carries more baggage than necessary to implement only the required admin capability.

New CLI commands should expose the capability provided by the Go chaincode package:

  • Install
  • QueryInstalled
  • GetInstalled
  • Approve
  • QueryApproved
  • CheckCommitReadiness
  • Commit
  • QueryCommitted
  • QueryCommittedWithName

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions