libirecovery

Library and utility to communicate with iBoot/iBSS via USB

brewmacoslinux
Try with needOr install directly
Source

About

Library and utility to talk to iBoot/iBSS via USB

Commands

irecovery

Examples

Connect to a device in recovery mode and enter interactive shell$ irecovery -s
Send a command to the device in recovery mode$ irecovery -c "getenv product"
Restore a firmware file to a connected device$ irecovery -r firmware.ipsw