Skip to content

CLI‑password

rhoopr edited this page May 26, 2026 · 7 revisions

--password / -p

Provide the iCloud password for this process.

Usage

kei sync -p 'my-password'
ICLOUD_PASSWORD='my-password' kei sync

Details

  • Required: no
  • Type: string
  • Env var: ICLOUD_PASSWORD
  • Conflicts with --password-file and --password-command

If no password source is set and no stored credential is available, kei prompts interactively.

Passing passwords as command-line arguments can expose them in shell history and process listings. Prefer ICLOUD_PASSWORD, --password-file, --password-command, or kei password set.

Passwords are redacted from logs and debug output. The ICLOUD_PASSWORD environment variable is cleared from the process after reading.

Related

Commands

Getting Started

Features

Clone this wiki locally