1.1 KiB
1.1 KiB
auth
Read when: pairing a store, checking auth state, logging out, or choosing QR vs phone pairing.
wacli auth connects interactively and bootstraps sync after successful pairing. wacli sync never shows a QR code, so use auth first for a new store.
Commands
wacli auth [--follow] [--idle-exit 30s] [--download-media] [--qr-format terminal|text] [--phone PHONE]
wacli auth status
wacli auth logout
Notes
- Default pairing prints a terminal QR code.
--qr-format textprints the raw QR payload for external renderers.--phone PHONEuses WhatsApp phone-number pairing instead of QR pairing.- After pairing, auth runs bootstrap sync until idle unless
--followis set. - Bootstrap sync honors
WACLI_SYNC_MAX_MESSAGESandWACLI_SYNC_MAX_DB_SIZEto cap local history growth. auth statusreports whether the local store is authenticated.auth logoutinvalidates the linked-device session and requires writable mode.
Examples
wacli auth
wacli auth --qr-format text
wacli auth --phone "+1 (234) 567-8900"
wacli auth --download-media
wacli auth status --json
wacli auth logout