Hyperledger Composer Command Line
The Hyperledger Composer command line application, composer, can be used to perform multiple
administrative, operational, and development tasks.
The Hyperledger Composer command line application can be installed using npm:
npm install -g composer-cli
Please note: When using Ubuntu this command will fail when running in a root user shell.
Business Network Archives
composer archive create
Create a Business Network Archive from a directory on disk: composer archive create
composer archive list
Verify the contents of a Business Network Archive on disk: composer archive list
Business Network Card Management
composer card create
Creates a business network card from a connection profile, business network name, and certificates: composer card create
composer card delete
Deletes a business network card which you have imported locally: composer card delete
composer card import
Imports a created card into your local wallet: composer card import
composer card export
Exports and packages a card from your wallet: composer card export
composer card list
Lists all cards currently in your wallet: composer card list
Business Network management
composer network deploy
Deploy a Business Network Definition: composer network deploy
Please note: It is recommended that users use the composer runtime install and composer network start commands instead of this command.
composer network undeploy
Permanently disable a business network definition: composer network undeploy
composer network list
List the contents of a deployed Business Network: composer network list
composer network loglevel
Return or update the log level for the composer runtime: composer network loglevel
composer network ping
Test the connection to a deployed a Business Network: composer network ping
composer network update
Update a deployed Business Network: composer network update
composer network upgrade
Upgrade the Hyperledger Composer runtime of a specific deployed business network: composer network upgrade
composer network start
Deploy a business network archive to a Hyperledger Fabric peer that already has the Hyperledger Composer runtime installed: composer network start
composer runtime install
Install the Hyperledger Composer runtime to a Hyperledger Fabric peer: composer runtime install
Participant and Identity management
composer participant add
Adds a participant to a participant registry: composer participant add
composer identity issue
Issue a new identity to a participant: composer identity issue
composer identity bind
Bind an existing identity to a participant: composer identity bind
composer identity list
List all identities in a business network: composer identity list
composer identity revoke
Revoke an identity from a participant: composer identity revoke
Transaction execution
composer transaction submit
Submit a transaction for execution: composer transaction submit