drift

Diff and sync files with your server

drift is an open-source terminal tool. It compares your local project with the server line by line and transfers only the changes you approve, over SFTP, FTP or FTPS.

SFTP / FTP / FTPS Linux / macOS Open source, MIT license

drift in action

See every change before you upload

The diff view shows added and removed lines with syntax highlighting. For each file you choose upload, download, delete or skip. drift suggests a direction from the modification times.

Diff of PriceCalculator.php with deletions marked in red and additions in green.

Local project and server side by side

@ connects the right-hand pane to a host. Space marks files or whole directories, and s opens the comparison.

The file browser shows the local project on the left and the staging server's files on the right.

Several projects, each with its own hosts

drift dash opens the project dashboard. Each project has its own hosts and path mappings. In the file browser, P switches projects.

The project dashboard with four registered projects and their local paths.

One upload in 27 seconds

The recording shows file selection, the diff and a confirmed upload. On the next comparison, the local and the remote file match.

What else drift does

Install drift

You need Linux or macOS, Go 1.25 or newer, and Git. Go's binary directory must be in your PATH.

go install github.com/WariKoda/drift@latest

Run drift in your project directory. H opens the host manager and n adds your first host. ? shows the keys on every screen.

Installation guide on GitHub

Frequently asked questions

What is drift?

drift is a free, open-source terminal program for Linux and macOS. It shows the differences between your local project and a server as a line-by-line diff and transfers only the files you approve, over SFTP, FTP or FTPS.

Who is drift for?

Developers who deploy websites or applications to shared hosting, staging or production servers over SFTP or FTP and want to see what changes before they upload.

Which protocols does drift support?

SFTP, FTP and FTPS. With FTPS, drift verifies the server certificate. You can allow exceptions for one session or permanently.

Does drift run on Windows?

No. drift runs on Linux and macOS.

How is drift different from FileZilla or rsync?

FileZilla transfers files but shows no line-by-line diff before an upload. rsync needs SSH access and rsync on the server, and it does not support FTP. drift shows the diff of every file and transfers it only after you approve.

Does drift add files to my project?

No. Configuration lives in ~/.config/drift/. drift leaves out paths from your .gitignore during a comparison unless you include them with i.

Where does drift store credentials?

In the host files under ~/.config/drift/projects/, which drift creates with mode 600. Instead of a password, a host file can name an environment variable such as $FTP_PASSWORD.

How much does drift cost?

Nothing. drift is MIT licensed, and the source code is on GitHub.