Skip to content
proton-cli

proton account settings

Account-wide preferences.

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

Holds emergency-access, get, list, notifications, password, recovery-contacts, recovery-email, recovery-phone, recovery-phrase, second-password, security-keys, sentinel, set and two-factor.

People who can get into your account if you cannot.

A contact you add is handed a copy of your keys, sealed so only they can open it, and a waiting period. If they ever request access, it opens once the wait runs out - unless you grant it sooner or cancel the request. A contact has to have a Proton account of their own.

list shows the people you granted; list --incoming shows accounts that granted you.

Holds access, add, cancel, get, grant, list, remove, request and update.

Sign in to an account whose emergency access is open.

–as names the profile to save the account under, which is then an ordinary profile: proton --profile NAME mail list reads its mail. The access has to be open first - request it and wait, or have the account grant it.

proton account settings emergency-access access REF
Terminal window
proton account settings emergency-access access 4Gh2k9Lp --as dads-account
Flag Description
--as string Profile to save the accessed account under

Let somebody into your account in an emergency.

Your password is asked for. –wait sets how long after a request the access opens, and defaults to 7d. The contact has to have a Proton account.

proton account settings emergency-access add EMAIL
Terminal window
proton account settings emergency-access add jane.roe@proton.me
proton account settings emergency-access add jane.roe@proton.me --wait 3d --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code
--wait string How long after a request the access opens (e.g. 3d); default 7d

Take back a request in flight.

Your password is asked for. On one somebody made against your account, this denies it. The access itself stays; only the pending request is cancelled.

proton account settings emergency-access cancel REF
Terminal window
proton account settings emergency-access cancel 7Kd2p1Qa
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Show one emergency access.

proton account settings emergency-access get REF
Terminal window
proton account settings emergency-access get 7Kd2p1Qa

Let a pending request in now, without the wait.

Your password is asked for. The contact gets access at once, so this is a decision to make only when you meant them to have it.

proton account settings emergency-access grant REF
Terminal window
proton account settings emergency-access grant 7Kd2p1Qa --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

List the people you let into your account.

WAIT is how long after a request the access opens. STATUS is enabled, requested, or open. –incoming lists accounts that granted you emergency access instead.

proton account settings emergency-access list
Terminal window
proton account settings emergency-access list
proton account settings emergency-access list --incoming
Flag Description
--desc Reverse the order
--incoming Act on access others granted you, not access you granted
--limit int How many emergency contacts per page; 0 for all of them
--page int Which page of results, counting from zero
--sort string Order by: created, contact (default created)

Remove an emergency contact.

Your password is asked for. Their copy of your keys stops working. A contact who is also a recovery contact keeps that.

proton account settings emergency-access remove REF...
Terminal window
proton account settings emergency-access remove 7Kd2p1Qa
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Start the wait to get into an account that granted you access.

The access opens once the account’s wait runs out, unless it cancels the request first. access is what signs in once it is open.

proton account settings emergency-access request REF
Terminal window
proton account settings emergency-access request 4Gh2k9Lp

Change how long an emergency contact waits.

Your password is asked for. –wait is required.

proton account settings emergency-access update REF
Terminal window
proton account settings emergency-access update 7Kd2p1Qa --wait 3d --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code
--wait string How long after a request the access opens (e.g. 3d)

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

The emails and in-app notices Proton sends you.

Critical account notifications are sent whatever is off here. The daily email about new mail is a Mail setting: proton mail settings set daily-notifications.

Holds disable, enable and list.

Stop emails or notices Proton sends you.

proton account settings notifications disable REF...
Terminal window
proton account settings notifications disable offers newsletter
proton account settings notifications disable in-app

Have Proton send you emails or notices.

proton account settings notifications enable REF...
Terminal window
proton account settings notifications enable newsletter

List what Proton sends you, and what is on.

proton account settings notifications list
Terminal window
proton account settings notifications list
Flag Description
--limit int How many notifications per page; 0 for all of them
--page int Which page of results, counting from zero

The password you sign in with.

Holds set.

Change your password.

Your current password is asked for first. The new one comes from –new-password-file, which takes - for stdin, or from a prompt that asks for it twice. It needs at least eight characters and cannot be the one it replaces.

In two-password mode this changes the password you sign in with, and your keys stay locked with your second password.

This session goes on working. Another machine signed in to this account asks for the new password the next time it opens your keys.

proton account settings password set
Terminal window
proton account settings password set
proton account settings password set --password-file /run/secrets/proton --new-password-file /run/secrets/proton-new
Flag Description
--new-password-file string Read the password being set from a file, or - for stdin
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

People who can help you back into your account.

A contact you add is handed a copy of your keys, sealed so only they can open it. If you are ever locked out, they can hand back the part that reactivates your keys. A contact has to have a Proton account of their own.

list shows the people you chose; list --incoming shows accounts that chose you.

Holds add, get, list and remove.

Let somebody help you recover your account.

Your password is asked for. The contact has to have a Proton account.

proton account settings recovery-contacts add EMAIL
Terminal window
proton account settings recovery-contacts add alex.roe@proton.me
proton account settings recovery-contacts add alex.roe@proton.me --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Show one recovery contact.

proton account settings recovery-contacts get REF
Terminal window
proton account settings recovery-contacts get 3Np7xQ2b

List the people who can help you recover.

–incoming lists accounts you can help recover instead.

proton account settings recovery-contacts list
Terminal window
proton account settings recovery-contacts list
proton account settings recovery-contacts list --incoming
Flag Description
--desc Reverse the order
--incoming Act on access others granted you, not access you granted
--limit int How many recovery contacts per page; 0 for all of them
--page int Which page of results, counting from zero
--sort string Order by: created, contact (default created)

Remove a recovery contact.

Your password is asked for. Their copy of your keys stops working. A contact who is also an emergency contact keeps that.

proton account settings recovery-contacts remove REF...
Terminal window
proton account settings recovery-contacts remove 3Np7xQ2b
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

The address Proton writes to if you lose access.

Holds disable, enable, get, set and verify.

Stop allowing password resets by email.

Your password is asked for. The address stays, and Proton goes on sending security notices to it.

proton account settings recovery-email disable
Terminal window
proton account settings recovery-email disable
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Allow password resets by email.

Your password is asked for. An account with no recovery address, and one with Proton Sentinel turned on, is refused.

proton account settings recovery-email enable
Terminal window
proton account settings recovery-email enable
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Show the recovery address and what it may do.

proton account settings recovery-email get
Terminal window
proton account settings recovery-email get

Set the recovery address.

Your password is asked for. set none removes the address, and with it any way to reset your password by email.

A new address is unverified until you open the link Proton mails to it: proton account settings recovery-email verify sends one.

proton account settings recovery-email set EMAIL
Terminal window
proton account settings recovery-email set jane.roe@example.com
proton account settings recovery-email set none
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Send a verification email to the recovery address.

Open the link in it to finish. Until then Proton will not reset your password by email.

proton account settings recovery-email verify
Terminal window
proton account settings recovery-email verify

The number Proton texts if you lose access.

Holds disable, enable, get, set and verify.

Stop allowing password resets by SMS.

Your password is asked for. The number stays, and Proton goes on using it for security notices.

proton account settings recovery-phone disable
Terminal window
proton account settings recovery-phone disable
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Allow password resets by SMS.

Your password is asked for. An account with no recovery number, and one with Proton Sentinel turned on, is refused.

proton account settings recovery-phone enable
Terminal window
proton account settings recovery-phone enable
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Show the recovery number and what it may do.

proton account settings recovery-phone get
Terminal window
proton account settings recovery-phone get

Set the recovery number.

Your password is asked for. The number needs its country code, as +43 660 1234567. set none removes the number, and with it any way to reset your password by SMS.

A new number is unverified until a code Proton texts it is handed back: proton account settings recovery-phone verify sends one.

proton account settings recovery-phone set PHONE
Terminal window
proton account settings recovery-phone set '+43 660 1234567'
proton account settings recovery-phone set none
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Confirm the recovery number with a code sent by SMS.

With no –code, Proton texts the number a code. Run it again with –code to hand the code back, which is what marks the number verified.

Until then Proton will not reset your password by SMS.

proton account settings recovery-phone verify
Terminal window
proton account settings recovery-phone verify
proton account settings recovery-phone verify --code 482913
Flag Description
--code string The code Proton texted the number

The twelve words that open your account without your password.

Holds disable, get and set.

Remove the recovery phrase.

Your password is asked for. The words you wrote down stop working, and nothing else recovers the account through them.

proton account settings recovery-phrase disable
Terminal window
proton account settings recovery-phrase disable
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Show whether a recovery phrase is set.

The status is one of: on, outdated, not set, off. An outdated phrase was set before your keys were replaced: it still opens the data it was made for, and it will not get you back into the account.

proton account settings recovery-phrase get
Terminal window
proton account settings recovery-phrase get

Make a recovery phrase and print it.

Your password is asked for. The twelve words are printed once and kept nowhere: write them down. Anyone holding them can open the account.

A phrase that is already set is replaced and stops working.

Recover with proton account keys reactivate --recovery-phrase.

proton account settings recovery-phrase set
Terminal window
proton account settings recovery-phrase set
proton account settings recovery-phrase set --output json
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

The second password your keys can be locked with.

In two-password mode one password signs you in and another opens your keys.

Holds disable, enable, get and set.

Leave two-password mode.

Your password is asked for, and your keys are locked with it. The second password stops working, and nothing else about the account changes.

This session goes on working. Another machine signed in to this account asks for your password the next time it opens your keys.

proton account settings second-password disable
Terminal window
proton account settings second-password disable
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Lock your keys with a second password.

The password you sign in with is asked for first and stays as it is. The second password comes from –new-password-file, which takes - for stdin, or from a prompt that asks for it twice. It needs at least eight characters and cannot be the one you sign in with.

Signing in then takes both: proton account login --second-password-file, or a prompt for the second one after your password.

An account already in two-password mode is refused.

proton account settings second-password enable
Terminal window
proton account settings second-password enable
proton account settings second-password enable --password-file /run/secrets/proton --new-password-file /run/secrets/proton-second
Flag Description
--new-password-file string Read the password being set from a file, or - for stdin
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Show whether this account uses two-password mode.

proton account settings second-password get
Terminal window
proton account settings second-password get

Change your second password.

The password you sign in with is asked for first. The new second password comes from –new-password-file, which takes - for stdin, or from a prompt that asks for it twice. It needs at least eight characters and cannot be the one you sign in with.

Your keys are locked with it from then on. This session goes on working; another machine signed in to this account asks for it the next time it opens your keys.

An account that does not use two-password mode is refused.

proton account settings second-password set
Terminal window
proton account settings second-password set
proton account settings second-password set --password-file /run/secrets/proton --new-password-file /run/secrets/proton-second
Flag Description
--new-password-file string Read the password being set from a file, or - for stdin
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

The security keys this account signs in with.

A key is one you plug in. Registering it asks you to touch it, so it takes somebody at the machine; a built-in authenticator and a passkey held in a phone are registered at https://account.proton.me instead.

An account may have four. Registering the first one makes a key part of every sign-in, and removing the last one ends that.

Holds create, delete, list and update.

Register a security key with the account.

Your password is asked for, then the key: plug it in and touch it, and give its PIN if it has one. A key already registered here is refused by the key itself.

–name is required and is what the key is listed under. An account may have four keys, and from the first one a key is asked for at every sign-in.

With no terminal to ask, pass –password-file, which takes - for stdin. The touch still needs you there.

proton account settings security-keys create
Terminal window
proton account settings security-keys create --name "YubiKey 5C"
proton account settings security-keys create --name "Spare key" --password-file /run/secrets/proton
Flag Description
--name string Name for the new security key
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Remove a security key from the account.

The key stops signing in here and keeps the credential it made, which only its own manufacturer’s tool clears. Removing the last one stops a key being asked for at all.

Asks for your password even when you are signed in. With no terminal to ask, pass –password-file, which takes - for stdin.

proton account settings security-keys delete REF
Terminal window
proton account settings security-keys delete "Key in the safe"
proton account settings security-keys delete 5bH2mQxK --yes --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

List the security keys registered with the account.

The ID is what update and delete take, and a key’s name works in place of it.

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

Rename a security key.

The name is how you tell your keys apart and is all that changes: the key signs in exactly as it did.

proton account settings security-keys update REF
Terminal window
proton account settings security-keys update "Spare key" --name "Key in the safe"
Flag Description
--name string New name for the security key

Proton Sentinel, the heightened protection for your account.

It needs a plan that includes it. While it is on, Proton chooses which recovery methods the account may use. An organization that turns it on for its members decides it for them.

Holds disable, enable and get.

Turn Proton Sentinel off.

–emails stops only the emails it sends, and leaves it on.

proton account settings sentinel disable
Terminal window
proton account settings sentinel disable
proton account settings sentinel disable --emails
Flag Description
--emails Only the emails it sends

Turn Proton Sentinel on.

–emails turns on the emails it sends about what it finds as well, and turns it on first if it was off.

proton account settings sentinel enable
Terminal window
proton account settings sentinel enable
proton account settings sentinel enable --emails
Flag Description
--emails Also the emails it sends

Show whether Proton Sentinel is on.

proton account settings sentinel get
Terminal window
proton account settings sentinel get

Change one account setting.

proton account settings set KEY VALUE
Terminal window
proton account settings set locale de_AT
proton account settings set week-start monday

What you are asked for at sign-in besides your password.

Holds disable, enable, generate and get.

Stop asking for an authenticator app code.

Your password and a current code are asked for. A recovery code works in place of the code.

A registered security key goes on being asked for.

proton account settings two-factor disable
Terminal window
proton account settings two-factor disable
proton account settings two-factor disable --totp 123456 --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Ask for an authenticator app code at every sign-in.

A secret is printed and you are asked for a code from it. With –totp CODE the code confirms the secret from the last two-factor generate instead, which is how this runs with nobody to ask.

Recovery codes are printed once as it turns on. Each signs you in a single time if you lose the app.

Security keys are registered with proton account settings security-keys create.

proton account settings two-factor enable
Terminal window
proton account settings two-factor enable
proton account settings two-factor enable --totp 123456 --password-file /run/secrets/proton
Flag Description
--password-file string Read the account password from a file, or - for stdin
--totp string Two-factor code

Make a two-factor secret for an authenticator app.

Nothing about the account changes. The secret waits until proton account settings two-factor enable --totp CODE confirms it with a code computed from it, and making another replaces the one waiting.

It is printed once. Anyone holding it can produce your codes.

proton account settings two-factor generate
Terminal window
proton account settings two-factor generate
proton account settings two-factor generate --output json

Show what this account is asked for at sign-in.

proton account settings two-factor get
Terminal window
proton account settings two-factor get

Every command also takes the flags that work everywhere.