libmtp

Transfer files to and from MTP devices like Android phones

brewmacoslinux
Try with needOr install directly
Source

About

Implementation of Microsoft's Media Transfer Protocol (MTP)

Commands

mtp-probemtp-detectmtp-sendfilemtp-getfilemtp-newfoldermtp-formatmtp-filedump

Examples

detect connected MTP devices$ mtp-detect
send file to Android phone storage$ mtp-sendfile localfile.txt /phone/storage/file.txt
download file from MTP device to computer$ mtp-getfile 12345 ./downloaded_file.txt
create new folder on connected device$ mtp-newfolder 0 'MyFolder'
list all files and metadata on device$ mtp-filedump