proton drive
Files and folders in Drive.
Every command under proton drive, with the arguments and flags it takes. For these commands in use, see the guide.
Holds invitations, items, photos, settings, shared, sharing and trash.
invitations
Section titled “invitations”Shares other people have offered you.
Holds accept, decline and list.
invitations accept
Section titled “invitations accept”Accept invitations.
proton drive invitations accept REF...proton drive invitations accept 5bH2mQxKinvitations decline
Section titled “invitations decline”Decline invitations.
proton drive invitations decline REF...proton drive invitations decline 5bH2mQxKinvitations list
Section titled “invitations list”List invitations waiting for an answer.
proton drive invitations listproton drive invitations listFiles and folders.
Holds copy, create, delete, download, get, list, move, revisions, share, trash, update and upload.
items copy
Section titled “items copy”Copy files into another folder.
proton drive items copy [PATH...]proton drive items copy /Documents/report.pdf --into /Archiveproton drive items copy --pattern '*.pdf' --scope /Documents --into /Backup| Flag | Description |
|---|---|
--all |
Act on everything in scope, rather than a subset |
--into string |
Destination folder |
--larger-than string |
Match files above SIZE (e.g. 100MB, 2GB) |
--newer-than string |
Match files newer than DURATION |
--older-than string |
Match files older than DURATION (e.g. 30d, 2w, 1h) |
--pattern string |
Match names against a shell glob, e.g. *.tmp |
--recursive |
Descend into subfolders when filtering |
--scope string |
Look only inside this folder (default: the whole drive) |
--smaller-than string |
Match files below SIZE |
items create
Section titled “items create”Create a folder, and any missing folder above it.
proton drive items create PATHproton drive items create /Documents/2026items delete
Section titled “items delete”Delete files or folders permanently.
proton drive items delete [PATH...]proton drive items delete /Documents/report.pdfproton drive items delete --pattern '*.tmp' --scope /Build --recursive --yes| Flag | Description |
|---|---|
--all |
Act on everything in scope, rather than a subset |
--larger-than string |
Match files above SIZE (e.g. 100MB, 2GB) |
--newer-than string |
Match files newer than DURATION |
--older-than string |
Match files older than DURATION (e.g. 30d, 2w, 1h) |
--pattern string |
Match names against a shell glob, e.g. *.tmp |
--recursive |
Descend into subfolders when filtering |
--scope string |
Look only inside this folder (default: the whole drive) |
--smaller-than string |
Match files below SIZE |
items download
Section titled “items download”Download a file.
proton drive items download PATHproton drive items download /Documents/report.pdf --output-dir .proton drive items download /Documents/report.pdf --output - > report.pdf| Flag | Description |
|---|---|
--force |
Overwrite a file that already exists |
--output string |
Write to this path, or - for stdout |
--output-dir string |
Write into this directory, keeping each item’s own name |
items get
Section titled “items get”Show a file or folder’s details.
proton drive items get PATHproton drive items get /Documents/report.pdfitems list
Section titled “items list”List what is in a folder.
The filters are the same ones move, copy, trash and delete take, so a selection can be worked out here and then handed to the verb that acts on it. PATH is what those commands call –scope.
proton drive items list [PATH]proton drive items listproton drive items list /Documents| Flag | Description |
|---|---|
--desc |
Reverse the order |
--larger-than string |
Match files above SIZE (e.g. 100MB, 2GB) |
--newer-than string |
Match files newer than DURATION |
--older-than string |
Match files older than DURATION (e.g. 30d, 2w, 1h) |
--page int |
Which page of results, counting from zero |
--page-size int |
How many items per page (default 50) |
--pattern string |
Match names against a shell glob, e.g. *.tmp |
--recursive |
Descend into subfolders when filtering |
--smaller-than string |
Match files below SIZE |
--sort string |
Order by: name, size, modified (default name) |
items move
Section titled “items move”Move files or folders into another folder.
proton drive items move [PATH...]proton drive items move /Documents/report.pdf --into /Archiveproton drive items move --pattern '*.log' --scope /Build --recursive --into /Archive| Flag | Description |
|---|---|
--all |
Act on everything in scope, rather than a subset |
--into string |
Destination folder |
--larger-than string |
Match files above SIZE (e.g. 100MB, 2GB) |
--newer-than string |
Match files newer than DURATION |
--older-than string |
Match files older than DURATION (e.g. 30d, 2w, 1h) |
--pattern string |
Match names against a shell glob, e.g. *.tmp |
--recursive |
Descend into subfolders when filtering |
--scope string |
Look only inside this folder (default: the whole drive) |
--smaller-than string |
Match files below SIZE |
items revisions
Section titled “items revisions”Earlier versions of a file.
Uploading over a file with --if-exists replace keeps what was there as a revision. Any of them can be read back without disturbing the file, put back in place, or dropped from the history.
Holds delete, download, list and restore.
items revisions delete
Section titled “items revisions delete”Delete an earlier version permanently.
proton drive items revisions delete PATH REVISION_REFproton drive items revisions delete /Documents/report.pdf 5bH2mQxKitems revisions download
Section titled “items revisions download”Download an earlier version of a file.
The file keeps whatever it holds now: this reads an old version out, where revisions restore puts one back in place.
proton drive items revisions download PATH REVISION_REFproton drive items revisions download /Documents/report.pdf 5bH2mQxK --output-dir .| Flag | Description |
|---|---|
--force |
Overwrite a file that already exists |
--output string |
Write to this path, or - for stdout |
--output-dir string |
Write into this directory, keeping each item’s own name |
items revisions list
Section titled “items revisions list”List a file’s earlier versions.
proton drive items revisions list PATHproton drive items revisions list /Documents/report.pdfitems revisions restore
Section titled “items revisions restore”Restore a file to an earlier version.
proton drive items revisions restore PATH REVISION_REFproton drive items revisions restore /Documents/report.pdf 5bH2mQxKitems share
Section titled “items share”Public links and the people you share with.
Holds add, get, link, remove, resend, unlink and update.
items share add
Section titled “items share add”Invite someone to a file or folder.
proton drive items share add PATH EMAILproton drive items share add /Documents jane@example.comproton drive items share add /Documents jane@example.com --edit --message 'Have a look'| Flag | Description |
|---|---|
--edit |
Allow editing rather than only viewing |
--message string |
Note to include in the invitation email |
items share get
Section titled “items share get”Show how a file or folder is shared.
proton drive items share get PATHproton drive items share get /Documents/report.pdfitems share link
Section titled “items share link”Create or update the public link for a file or folder.
Running it again with different options changes the existing link rather than making a second one, so the URL you have shared keeps working.
proton drive items share link PATHproton drive items share link /Documents/report.pdfproton drive items share link /Documents/report.pdf --expires 7d --password hunter2proton drive items share link /Documents --edit| Flag | Description |
|---|---|
--edit |
Allow editing rather than only viewing |
--expires string |
Stop working after DURATION (e.g. 7d, 2w, 6mo) |
--password string |
Require this password to open the link |
items share remove
Section titled “items share remove”Revoke someone’s access, or cancel their invitation.
proton drive items share remove PATH EMAILproton drive items share remove /Documents jane@example.comitems share resend
Section titled “items share resend”Send an unanswered invitation again.
proton drive items share resend PATH EMAILproton drive items share resend /Reports jane@proton.meitems share unlink
Section titled “items share unlink”Remove the public links for a file or folder.
proton drive items share unlink PATHproton drive items share unlink /Documents/report.pdfitems share update
Section titled “items share update”Change what somebody may do with a file or folder.
It applies to whoever holds the address, whether they have accepted yet or not: Proton keeps members and invitations apart, but the question is the same one either way.
proton drive items share update PATH EMAILproton drive items share update /Reports jane@proton.me --editproton drive items share update /Reports jane@proton.me --edit=false| Flag | Description |
|---|---|
--edit |
Allow editing rather than only viewing |
items trash
Section titled “items trash”Move files or folders to the trash.
proton drive items trash [PATH...]proton drive items trash /Documents/report.pdfproton drive items trash --pattern '*.tmp' --scope /Build --recursiveproton drive items trash --older-than 1y --scope /Downloads --dry-run| Flag | Description |
|---|---|
--all |
Act on everything in scope, rather than a subset |
--larger-than string |
Match files above SIZE (e.g. 100MB, 2GB) |
--newer-than string |
Match files newer than DURATION |
--older-than string |
Match files older than DURATION (e.g. 30d, 2w, 1h) |
--pattern string |
Match names against a shell glob, e.g. *.tmp |
--recursive |
Descend into subfolders when filtering |
--scope string |
Look only inside this folder (default: the whole drive) |
--smaller-than string |
Match files below SIZE |
items update
Section titled “items update”Rename a file or folder.
A name is a field like any other, so changing it is update --name rather than a verb of its own. To put something somewhere else, use move.
proton drive items update PATHproton drive items update /Documents/report.pdf --name summary.pdf| Flag | Description |
|---|---|
--name string |
New name, without a path |
items upload
Section titled “items upload”Upload a file or directory.
A name already taken is refused, so nothing is overwritten by accident. –if-exists answers instead:
replace a new revision, keeping the file’s history rename keep both, numbering the one being uploaded skip leave what is there alone
With –recursive that answer is about the folder the tree lands in.
SRC of - reads standard input, and then DEST has to name the file.
proton drive items upload SRC [DEST]proton drive items upload ./report.pdf /Documentsproton drive items upload --recursive ./project /Backupproton drive items upload --if-exists replace ./report.pdf /Documentspg_dump mydb | gzip | proton drive items upload - /Backups/db.sql.gz| Flag | Description |
|---|---|
--if-exists string |
What to do when the folder already has that name: rename, replace, skip |
--recursive |
Upload a directory and everything under it |
photos
Section titled “photos”Your photo library.
Holds albums, delete, download, favorite, list, trash, unfavorite and upload.
photos albums
Section titled “photos albums”Photo albums.
Holds add, create, delete, list, remove and update.
photos albums add
Section titled “photos albums add”Put photos into an album.
proton drive photos albums add REF PHOTO_REF...proton drive photos albums add Holidays 5bH2mQxKphotos albums create
Section titled “photos albums create”Create an album.
proton drive photos albums createproton drive photos albums create --name Holidays| Flag | Description |
|---|---|
--name string |
Name for the new album |
photos albums delete
Section titled “photos albums delete”Delete albums.
proton drive photos albums delete REF...proton drive photos albums delete Holidaysproton drive photos albums delete Holidays --delete-photos| Flag | Description |
|---|---|
--delete-photos |
Also move the album’s photos to the trash |
photos albums list
Section titled “photos albums list”List albums.
proton drive photos albums listproton drive photos albums listphotos albums remove
Section titled “photos albums remove”Take photos out of an album.
proton drive photos albums remove REF PHOTO_REF...proton drive photos albums remove Holidays 5bH2mQxKphotos albums update
Section titled “photos albums update”Change an album’s cover.
proton drive photos albums update REFproton drive photos albums update Holidays --cover 5bH2mQxK| Flag | Description |
|---|---|
--cover string |
Which of the album’s photos represents it |
photos delete
Section titled “photos delete”Delete photos permanently.
proton drive photos delete REF...proton drive photos delete 5bH2mQxKphotos download
Section titled “photos download”Download a photo.
proton drive photos download REFproton drive photos download 5bH2mQxK --output-dir .| Flag | Description |
|---|---|
--force |
Overwrite a file that already exists |
--output string |
Write to this path, or - for stdout |
--output-dir string |
Write into this directory, keeping each item’s own name |
photos favorite
Section titled “photos favorite”Mark photos as favourites.
proton drive photos favorite REF...proton drive photos favorite 5bH2mQxKphotos list
Section titled “photos list”List photos.
proton drive photos listproton drive photos listproton drive photos list --album Holidaysproton drive photos list --tag favorites| Flag | Description |
|---|---|
--album string |
Show only what is in this album, by ID |
--tag string |
Show only photos with this tag: favorites, screenshots, videos, live-photos, motion-photos, selfies, portraits, bursts, panoramas, raw |
photos trash
Section titled “photos trash”Move photos to the trash.
proton drive photos trash REF...proton drive photos trash 5bH2mQxKphotos unfavorite
Section titled “photos unfavorite”Remove photos from favourites.
proton drive photos unfavorite REF...proton drive photos unfavorite 5bH2mQxKphotos upload
Section titled “photos upload”Upload a photo to the library.
proton drive photos upload SRCproton drive photos upload ./IMG_2291.jpgsettings
Section titled “settings”How Drive behaves.
Holds get, list and set.
settings get
Section titled “settings get”Show the drive settings now in effect.
proton drive settings getproton drive settings getsettings list
Section titled “settings list”List the drive settings that can be changed.
proton drive settings listproton drive settings listsettings set
Section titled “settings set”Change one drive setting.
proton drive settings set KEY VALUEproton drive settings set revision-retention 30shared
Section titled “shared”Files and folders other people have shared with you.
Holds list.
shared list
Section titled “shared list”List what other people have shared with you.
These do not live in your tree, so they have no path: they are addressed by the ID this listing shows, the way trashed items and photos are.
An item whose name cannot be read is still listed, because knowing it is there is what lets you act on it.
proton drive shared listproton drive shared listsharing
Section titled “sharing”What you have shared with other people.
Holds list.
sharing list
Section titled “sharing list”List what you have shared, by link or with named people.
items share get PATH answers the question for one item; this answers the one you actually have, which is what have I left open.
proton drive sharing listproton drive sharing listItems you have removed but not yet deleted.
Holds empty, list and restore.
trash empty
Section titled “trash empty”Delete everything in the trash, permanently.
proton drive trash emptyproton drive trash emptytrash list
Section titled “trash list”List what is in the trash.
proton drive trash listproton drive trash listtrash restore
Section titled “trash restore”Put items back where they came from.
A trashed item has no path any more, so it is named by the ID that trash list shows.
proton drive trash restore REF...proton drive trash restore 5bH2mQxKEvery command also takes the flags that work everywhere.