Skip to content
proton-cli

proton account

Your Proton account, its settings and your session.

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

Holds get, login, logout, profiles, sessions and settings.

Show the account, its storage and this machine’s session.

proton account get
Terminal window
proton account get
proton account get --output json

Sign in and save the session for this profile.

Signing in also unlocks your keys, so your password is needed once per machine and not again. Anything a flag has not set is asked for, as long as this is a terminal.

Signing in again as the same account changes nothing, so an unattended job can run it first and recover from a session that expired.

proton account login
Terminal window
proton account login
proton account login --profile work
proton account login --user me@proton.me --password-file /run/secrets/proton
proton account login --user me@proton.me --password-stdin --totp 123456
Flag Description
--password-file string Read the account password from a file
--password-stdin Read the account password from stdin
--totp string Two-factor code
--user string Proton account email to sign in as

Discard the saved session for this profile.

The sealed key password on disk is useless without the session, so removing the file is enough to make it unreadable. –revoke additionally invalidates the session at Proton, which is what signing out in a Proton app does.

proton account logout
Terminal window
proton account logout
proton account logout --revoke
proton account logout --all
Flag Description
--all Act on everything in scope, rather than a subset
--revoke Also invalidate the session at Proton

Accounts signed in on this machine.

Holds delete and list.

Remove saved sessions by profile name.

proton account profiles delete REF...
Terminal window
proton account profiles delete work

List the profiles with a saved session.

proton account profiles list
Terminal window
proton account profiles list

Sessions Proton holds for this account.

Holds list and revoke.

List every signed-in session.

proton account sessions list
Terminal window
proton account sessions list

Invalidate sessions at Proton.

A revoked session cannot decrypt the key password sealed into its saved file, so revoking is what makes a leaked session file worthless.

proton account sessions revoke [REF...]
Terminal window
proton account sessions revoke 5bH2mQxK
proton account sessions revoke --others
Flag Description
--others Revoke every session except this one

Account-wide preferences.

Holds get, list and set.

Show the account settings now in effect.

proton account settings get
Terminal window
proton account settings get

List the account settings that can be changed.

proton account settings list
Terminal window
proton account settings list

Change one account setting.

proton account settings set KEY VALUE
Terminal window
proton account settings set locale de_AT
proton account settings set news off

Every command also takes the flags that work everywhere.