Not the most secure solution, but if you need a one-liner including the password...
sshpass -p <password> sftp <user>@<destination> <<< $'put <filepath>'