Upload a file to the server

smbclient

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

click the source code to copy install smbclient on any operating system with command-not-found.com