Ghostboard pixel

Good News For Linux Terminal Junkies! Proton Drive Now Has a CLI

Something to work with before the GUI client for Linux drops.
Warp Terminal

Proton Drive (partner link) is getting a lot of love these days. We recently covered the encryption upgrades and the Linux desktop client that's in the works. Now Proton has added something the terminal dwellers will find useful; an official Command-Line Interface (CLI) for Drive, available on Linux, macOS, and Windows.

The CLI is built on the Proton Drive SDK, the same foundation that powers the official desktop and mobile apps. It runs as a single binary on the various platforms and carries the same end-to-end encryption capabilities as Drive.

Here's a look at what it can do and how you can get it running on Linux.

What does it offer?

a terminal window that shows the output for the command "./proton-drive --version"

The CLI lets you handle the usual file management tasks from your terminal. You can upload, download, and browse files; manage the trash folder; and even oversee content sharing and invitations.

Results come out in plain text by default, and passing --json makes the output machine-readable for scripting.

Do note that it does not have a built-in continuous sync engine like the existing desktop clients do. That said, you should get similar behavior by scheduling it with cron or a systemd timer on Linux, so it is not as limited as it first sounds.

If you are the kind of person who would rather write a shell script than reach for a mouse, this will make Proton Drive (partner link) a natural part of your existing workflow rather than something that needs to be launched from the app launcher.

πŸ’‘
Proton is also working on a graphical desktop client for Linux as well. We should see it before the year end.

This is how you get it on Linux

I tested these instructions on a Fedora Workstation 44 system, and everything went smoothly.

First, you have to download the relevant CLI binary for your platform from the downloads index. I went with linux/x64 as I am on an x86 setup.

Now, open a terminal in the directory where you saved it and make the file executable:

chmod +x proton-drive

Verify the build:

./proton-drive version

Sign in through your browser:

./proton-drive auth login

Your session is stored securely via libsecret, so no password is ever passed on to the command line. Following that, you can run ./proton-drive help for getting the full command list or add --help to any command for its available flags.

If you prefer building from source, then the instructions and the source can be found on GitHub.


Suggested Read πŸ“–: Microsoft Just Brought Linux Commands to Windows

Not Kidding! Microsoft Just Brought Linux Commands to Windows Officially
The company that once called Linux a β€œcancer” is now the one shipping its core tools to Windows users.
About the author
Sourav Rudra

Sourav Rudra

A nerd with a passion for open source software, custom PC builds, motorsports, and exploring the endless possibilities of this world.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.