uhubctl

Control USB hub per-port power on/off via command line

brewmacoslinux
Try with needOr install directly
Source

About

USB hub per-port power control

Commands

uhubctl

Examples

List all USB hubs and their ports$ uhubctl -l
Turn off power to port 1 on hub 1$ uhubctl -l 1 -p 1 -a off
Turn on power to ports 2 and 3 on hub 2$ uhubctl -l 2 -p 2,3 -a on