Skip to content
proton-cli

proton drive photos

Your photo library.

Every command under proton drive photos, with the arguments and flags it takes. For these commands in use, see the drive guide.

Holds albums, delete, download, favorite, links, list, share, trash, unfavorite and upload.

Photo albums.

Holds add, create, delete, list, remove, share and update.

Put photos into an album.

proton drive photos albums add REF PHOTO_REF...
Terminal window
proton drive photos albums add Holidays 5bH2mQxK

Create an album.

proton drive photos albums create
Terminal window
proton drive photos albums create --name Holidays
Flag Description
--name string Name for the new album

Delete albums.

proton drive photos albums delete REF...
Terminal window
proton drive photos albums delete Holidays
proton drive photos albums delete Holidays --delete-photos
Flag Description
--delete-photos Also move the album’s photos to the trash

List albums.

proton drive photos albums list
Terminal window
proton drive photos albums list
Flag Description
--desc Reverse the order
--limit int How many albums per page; 0 for all of them
--page int Which page of results, counting from zero
--sort string Order by: name, photos (default name)

Take photos out of an album.

proton drive photos albums remove REF PHOTO_REF...
Terminal window
proton drive photos albums remove Holidays 5bH2mQxK

The people you share an album with.

Holds add, confirm, get, remove, resend and update.

Invite someone to an album.

EMAIL may be an address outside Proton. Proton emails them an invitation to create an account, and nothing reaches them until they have one and you run share confirm.

proton drive photos albums share add REF EMAIL
Terminal window
proton drive photos albums share add Holidays jane@proton.me
proton drive photos albums share add Holidays jane@proton.me --access editor --message 'Photos from the trip'
Flag Description
--access string What they may do with it: viewer, editor (default viewer)
--message string Note to include in the invitation email

Let somebody in once they join Proton.

Use it for an address that had no Proton account when you invited it. It is refused until the account exists, and share get says who is ready. Afterwards they hold an ordinary invitation, which they still have to accept.

proton drive photos albums share confirm REF EMAIL
Terminal window
proton drive photos albums share confirm Holidays sam@example.com

Show how an album is shared.

proton drive photos albums share get REF
Terminal window
proton drive photos albums share get Holidays

Revoke someone’s access, or cancel their invitation.

proton drive photos albums share remove REF EMAIL
Terminal window
proton drive photos albums share remove Holidays jane@proton.me

Send an unanswered invitation again.

proton drive photos albums share resend REF EMAIL
Terminal window
proton drive photos albums share resend Holidays jane@proton.me

Change what somebody may do with an album.

Name them by address. It works whether they have accepted the share or still have it pending.

proton drive photos albums share update REF EMAIL
Terminal window
proton drive photos albums share update Holidays jane@proton.me --access viewer
Flag Description
--access string What they may do with it: viewer, editor (default viewer)

Rename an album, or change its cover.

A cover has to be a photo the album holds. Anything you do not mention is left alone.

proton drive photos albums update REF
Terminal window
proton drive photos albums update Holidays --cover 5bH2mQxK
Flag Description
--cover string Which of the album’s photos represents it
--name string New name for the album

Delete photos permanently.

proton drive photos delete REF...
Terminal window
proton drive photos delete 5bH2mQxK

Download a photo.

proton drive photos download REF
Terminal window
proton drive photos download 5bH2mQxK --dest-dir .
Flag Description
--dest string Write to this path, or - for stdout
--dest-dir string Write into this directory, keeping each item’s own name
--force Overwrite a file that already exists

Mark photos as favourites.

proton drive photos favorite REF...
Terminal window
proton drive photos favorite 5bH2mQxK

Links that open a photo for anyone.

Holds create, get and revoke.

Make a link that opens a photo for anyone.

An item carries one link, so running it again changes that link rather than making a second one, and a URL you have already shared keeps working.

The password is read from a file, never from a flag value, and may be at most 50 characters. –clear-link-password takes it off again, and –expires never makes an expiring link permanent.

An album has no public link. Share one with the people you want to see it, with photos albums share add.

proton drive photos links create REF
Terminal window
proton drive photos links create 5bH2mQxK
proton drive photos links create 5bH2mQxK --expires 7d
proton drive photos links create 5bH2mQxK --link-password-file /run/secrets/photo-link
Flag Description
--clear-link-password Remove the public link’s password
--expires string Stop working after DURATION (e.g. 7d, 2w, 6mo), or never
--link-password-file string Read the public link’s password from a file, or - for stdin

Show the link on a photo, URL and all.

Use it to recover a URL you mislaid, rather than revoking the link and making a new one. The URL appears here and in no listing.

proton drive photos links get REF
Terminal window
proton drive photos links get 5bH2mQxK

Stop the link on a photo working.

The item is untouched; only the link stops working. This cannot take back what somebody already read.

proton drive photos links revoke REF
Terminal window
proton drive photos links revoke 5bH2mQxK

List photos.

proton drive photos list
Terminal window
proton drive photos list
proton drive photos list --album Holidays
proton drive photos list --tag favorites
Flag Description
--album string Show only what is in this album, by name or ID
--desc Reverse the order
--limit int How many photos per page; 0 for all of them
--page int Which page of results, counting from zero
--sort string Order by: captured (default captured)
--tag string Show only photos with this tag: favorites, screenshots, videos, live-photos, motion-photos, selfies, portraits, bursts, panoramas, raw

The people you share a photo with.

Holds add, confirm, get, remove, resend and update.

Invite someone to a photo.

EMAIL may be an address outside Proton. Proton emails them an invitation to create an account, and nothing reaches them until they have one and you run share confirm.

proton drive photos share add REF EMAIL
Terminal window
proton drive photos share add 5bH2mQxK jane@proton.me
proton drive photos share add 5bH2mQxK jane@proton.me --access editor
Flag Description
--access string What they may do with it: viewer, editor (default viewer)
--message string Note to include in the invitation email

Let somebody in once they join Proton.

Use it for an address that had no Proton account when you invited it. It is refused until the account exists, and share get says who is ready. Afterwards they hold an ordinary invitation, which they still have to accept.

proton drive photos share confirm REF EMAIL
Terminal window
proton drive photos share confirm 5bH2mQxK sam@example.com

Show how a photo is shared.

proton drive photos share get REF
Terminal window
proton drive photos share get 5bH2mQxK

Revoke someone’s access, or cancel their invitation.

proton drive photos share remove REF EMAIL
Terminal window
proton drive photos share remove 5bH2mQxK jane@proton.me

Send an unanswered invitation again.

proton drive photos share resend REF EMAIL
Terminal window
proton drive photos share resend 5bH2mQxK jane@proton.me

Change what somebody may do with a photo.

Name them by address. It works whether they have accepted the share or still have it pending.

proton drive photos share update REF EMAIL
Terminal window
proton drive photos share update 5bH2mQxK jane@proton.me --access viewer
Flag Description
--access string What they may do with it: viewer, editor (default viewer)

Move photos to the trash.

proton drive photos trash REF...
Terminal window
proton drive photos trash 5bH2mQxK

Remove photos from favourites.

proton drive photos unfavorite REF...
Terminal window
proton drive photos unfavorite 5bH2mQxK

Upload a photo to the library.

A photo the library already holds, with the same name and the same content, is not uploaded again. A different photo with the same name is uploaded beside it.

proton drive photos upload SRC
Terminal window
proton drive photos upload ./IMG_2291.jpg

Every command also takes the flags that work everywhere.