The opensc-tool utility can be used from the command line to perform miscellaneous smart card operations such as getting the card ATR or sending arbitrary APDU commands to a card.
--atr, -aPrint the Answer To Reset (ATR) of the card. Output is in hex byte format
--card-driver driver, -c driverUse the given card driver. The default is auto-detected.
--info, -iPrint information about OpenSC, such as version and enabled components.
--list-drivers, -DList all installed card drivers.
--list-files, -fRecursively list all files stored on card.
--list-readers, -lList all configured readers.
--name, -nPrint the name of the inserted card (driver).
--reader num, -r numUse the given reader number. The default is 0, the first reader in the system.
--send-apdu apdu, -s apduSends an arbitrary APDU to the card in the format AA:BB:CC:DD:EE:FF....
--serialPrint the card serial number (normally the ICCSN). Output is in hex byte format
--verbose, -vCauses opensc-tool to be more verbose. Specify this flag several times to enable debug output in the opensc library.
--wait, -wWait for a card to be inserted.