smbclient //server/share -U user -c 'put report.pdf'
Upload a file to an SMB share
This copies report.pdf from the current directory up to the share using the put command executed non-interactively. The -c form keeps the whole transfer to one line, ideal for cron jobs and scripts. Verify with a follow-up ls against the share that the file landed where expected.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.