Linux command
apw 命令
文件
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Start the background daemon
apw start
Authenticate
apw auth
Interactively search passwords
apw pw
List passwords for a domain
apw pw list [domain.com]
Interactively search OTP tokens
apw otp
List OTP secrets for a domain
apw otp list [domain.com]
说明
apw (Apple Passwords) is a command-line interface for accessing Apple Passwords (formerly iCloud Keychain) on macOS. It provides shell access to iCloud-synced login credentials and OTP secrets without opening System Settings. The tool uses a daemon-based architecture where a background process communicates with macOS's built-in Passwords helper tool. Authentication uses native macOS prompts (Touch ID or password dialog), so credentials are never exposed insecurely. The list subcommands output JSON for scripting and automation.
参数
- start
- Start the background daemon
- auth
- Authenticate the CLI with the daemon
- pw
- Interactively list and search passwords
- pw list _domain_
- List passwords in JSON format, optionally filtered by domain
- otp
- Interactively list and search OTP tokens
- otp list _domain_
- List OTP secrets in JSON format, optionally filtered by domain
- -h, --help
- Display help information
- -V, --version
- Show version number
FAQ
What is the apw command used for?
apw (Apple Passwords) is a command-line interface for accessing Apple Passwords (formerly iCloud Keychain) on macOS. It provides shell access to iCloud-synced login credentials and OTP secrets without opening System Settings. The tool uses a daemon-based architecture where a background process communicates with macOS's built-in Passwords helper tool. Authentication uses native macOS prompts (Touch ID or password dialog), so credentials are never exposed insecurely. The list subcommands output JSON for scripting and automation.
How do I run a basic apw example?
Run `apw start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does start do in apw?
Start the background daemon