scp -r ./app user@server-ip:/srv/app

Category: Self-Hosting

scp -r ./app user@server-ip:/srv/app

Copy a local directory to a remote server over SSH — simple one-time deployment method

Securely copies a local directory to a remote server over SSH. Simple and built-in — useful for initial deployments or small file transfers.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.