Get User's Card
The Card Get command,
virgil card-get, retrieves the User's Virgil Card from Virgil Services by way of the Virgil Card ID.
This command has the following syntax:
virgil card-get [options...] [-i <arg>] [-o <file>]
The main options are:
-i <file>, --in=<file> - Virgil Card ID. If omitted, stdin is used.
-o <file>, --out=<file> - A folder where Virgil Cards will be saved. If omitted, stdout is used.
Prerequisites for work with the command
In order to use the Get Card command,
virgil card-get, one must first:
Retrieving a Virgil Card via a Virgil Card ID:
virgil card-get -i -o alice.vcard
The result of executing this command will be a Virgil Card (alice.vcard), which will be stored to the folder from which the command was run. You can also show the result directly on a monitor, by using the command syntax:
virgil card-get [options...] [-i <arg>]. The output for this command has the following format:
id : 052e95969315a0d8d3f12de26a18f4e3821d4c160ec102ce870025c7c0556638
identity : [email protected]
identity type : email
scope : application
version : 4.0
public key : -----BEGIN PUBLIC KEY-----
-----END PUBLIC KEY-----