smbclient
smbclient {{//server/share}} --directory {{path/to/directory}} --command "put {{file.txt}}"