Nithin TD
Nithin TD

Reputation: 90

composer card import error return "Required file not found: connection.json"

I created the admin card for the business network using below command

composer network start -c PeerAdmin@hlfv1 -n airlines8 -V 0.0.1 -A Admin -S adminpw

logs

Starting business network airlines8 at version 0.0.1

Processing these Network Admins: 
userName: admin

✔ Starting business network definition. This may take a minute...
Successfully created business network card:
Filename: [email protected]

Command succeeded

To import that I run the below command but got an error

composer card import -f airlines8 -c admin@airlines8

error logs:

Error: Required file not found: connection.json
Command failed

Upvotes: 2

Views: 95

Answers (1)

david_k
david_k

Reputation: 5868

Your command to import the card is not correct, try

composer card import -f [email protected]

The -f flag defines the name of the card file you want to import.

Upvotes: 1

Related Questions