Accounts
Log in to Photos:
ente account login --app photosThe CLI asks for your email and password, then for an email verification code or an authenticator code when your account requires one. When it works, it prints the saved account:
Name [email protected]
Email [email protected]
Host https://api.ente.com
Logged in photos
Selected yes
ID 1580559962386438--account NAME is the local name for this account on this computer. Without it, the login goes to the selected account, or, when there is none yet, to a new account named after its email. --app is photos, auth or locker.
If your account uses a passkey, the CLI opens your browser, or prints the link if it cannot. Approve the login there, return to the terminal, and press Enter. When both a passkey and an authenticator are set up, the CLI asks which to use. Passkey login needs a terminal; it does not work with --input or --no-input.
Add a second app
Each app has its own login. Log the same account into Auth:
ente account login --app authLogged in now shows photos,auth.
Use a self-hosted server
ente account login --account home-server --app photos --host https://api.example.orgThe server is saved with the account, and every later command uses it. A saved name keeps its server; to log in to another server, use a new name.
Pick and rename accounts
ente account listSELECTED NAME EMAIL HOST LOGGED IN ID
[email protected] [email protected] https://api.ente.com photos,auth 1580559962386438
* home-server [email protected] https://api.example.org photos 3Commands use the selected account. Adding an account selects it; logging in to an existing one keeps the selection. Change the selection with ente account switch home-server, or pick an account for one command with --account NAME after the subcommand. ente account rename [email protected] personal changes a local name.
Create an account
ente account create --app photosThe CLI asks for your email, consent to the terms, the verification code it emails you, and a password. It prints Created [email protected] and signed into Ente Photos. Then print and store your recovery key:
ente account recovery-keyIf creation is interrupted, run the same account create command again with the same CLI home and password; it resumes with its saved keys. If the server already has the account, run ente account login instead; it completes the login and clears the unfinished creation.
Log in without prompts
Write the credentials as JSON. All fields are strings:
{
"email": "[email protected]",
"password": "correct horse battery staple",
"otp": "123456",
"totp": "654321"
}Include otp only when the server asks for an email code; request it first with ente account request-otp --email [email protected] --app photos --purpose login. Include totp only when authenticator protection is enabled. Then:
ente account login --account personal --app photos --input credentials.json --no-input--input - reads the JSON from stdin. Creation works the same way with --accept-terms, an otp from ente account request-otp --email [email protected], and no totp.
Protect login with an authenticator
ente account totp enableThe CLI prints a secret to add to your authenticator app, asks for a code from it, and prints Authenticator protection is enabled. Without prompts, run ente account totp setup to get the secret, then ente account totp enable --input - with {"secret": "...", "totp": "..."}. ente account totp status shows the current setting. This protects your account login and is separate from the codes stored in Auth.
ente account totp disable turns it off after confirmation (--yes skips the prompt).
Require an email code at login
ente account email-mfa enableEvery later login then asks for a code sent to your email. ente account email-mfa status shows the setting, and ente account email-mfa disable turns it off after confirmation (--yes skips the prompt). Disabling needs password login (SRP). For older accounts that lack it, logging in with your password sets it up, and disable asks for your password to set it up first (ENTE_CLI_PASSWORD supplies it and is required with --no-input).
Change your email
ente account change-email --email [email protected]The CLI emails a code to the new address, asks for it, and updates the email saved on this computer; the local account name stays the same. Without prompts, run ente account request-otp --email [email protected] --app photos --purpose change first, then ente account change-email --email [email protected] --input - with {"otp": "123456"}.
Share your plan with a family
ente account family create
ente account family member add [email protected]On a paid plan, this starts a family and emails Bob an invite; up to five other accounts can join and share its storage. ente account family view shows members, usage and IDs. ente account family member set-limit [email protected] --storage 100GB caps what a member can use (--no-limit removes the cap), ente account family member remove [email protected] removes a member or cancels an invite, and a member leaves with ente account family leave; both ask for confirmation unless given --yes.
Show your verification ID
ente account verification-idPrints your 24-word verification ID. These are the same words shown in the Verify sheet in Photos and Locker. Compare them with the words the other person sees for your account. With --json, the result is {"verificationId": "..."}.
Get a token
ente account token --app photosPrints the saved API token for that app login. It is a secret. With --json the result is {"token": "..."}.
Review logins
ente account session list --app photosLists the devices logged in to that app, with their IDs; * marks the CLI's own session. Lists show 100 sessions; use --all or --limit N to see more. ente account session revoke <ID> logs one out after confirmation (--yes skips the prompt). The CLI's own session is ended with ente account logout instead.
Log out
ente account logout --app authPrints Logged out of Ente Auth for "[email protected]". Without --app, the CLI logs out of every app and removes the account and its local data: Logged out of Ente Photos and Ente Auth. Removed account "[email protected]" from this device. ente account logout --local forgets the account on this computer without contacting the server; it cannot be combined with --app.
Read as JSON
list and session list return arrays; the other commands return one object, except family view, which returns null outside a family. IDs are strings; timestamps are RFC 3339 strings in UTC; byte counts are integers.
| Command | Fields |
|---|---|
list, view, switch, rename | id, name, email, host, apps, selected |
login, create | account (the fields of view), app |
logout | account, remoteLogout, and app or apps |
request-otp | email, host, app, purpose |
token | token |
recovery-key | recoveryKey |
verification-id | verificationId |
totp setup | secret |
totp status, totp enable, totp disable | totpEnabled |
email-mfa status, email-mfa enable, email-mfa disable | emailMfaEnabled |
change-email | account (the updated account, with the fields of view) |
session list | id, device, userAgent, ip, current, createdAt, lastUsedAt |
session revoke | app, session (the revoked session, with the fields of session list) |
family view | storageBytes, usedBytes, expiresAt, members (id, email, status, admin, usedBytes, nullable storageLimitBytes) |
family leave | left |
family create and the family member commands return the same object as family view. A member's status is admin, member or invited.
CLI home
The CLI home is the directory where the CLI keeps its data: an encrypted vault with your accounts and keys, a database per account with synced metadata, and assets (like location datasets or ML models).
| System | CLI home |
|---|---|
| macOS | ~/Library/Application Support/ente-cli |
| Linux | $XDG_DATA_HOME/ente-cli, which defaults to ~/.local/share/ente-cli |
| Windows | %LOCALAPPDATA%\ente-cli |
Set ENTE_CLI_HOME to use another directory. The key that unlocks the vault is stored in your operating system's credential store under the service name io.ente.cli, keyed by the path of the CLI home. A CLI home that has been moved cannot find its key; move it back, or supply the original key through ENTE_CLI_VAULT_KEY.
Set up a headless machine
A server or container has no credential store. Generate a key once, keep it in a file outside the CLI home that only the job can read, and supply it on every run:
umask 077
mkdir -p "$HOME/.config/ente-cli"
(set -C; ente vault key generate > "$HOME/.config/ente-cli/vault-key")
export ENTE_CLI_HOME="$HOME/.local/share/ente-cli-jobs"
export ENTE_CLI_VAULT_KEY="$(cat "$HOME/.config/ente-cli/vault-key")"
ente account login --account personal --app photos --input credentials.json --no-inputset -C makes the shell refuse to overwrite an existing key file; a replaced key cannot open the vault it was not used to create. Use the same CLI home and key for every later run. Learn more in Automation.
