Get started

Login options

CommandUse it to
line login --qrChoose QR login explicitly (it is the default).
line login --email ADDRESSSign in with the email address and password set on your LINE account, with phone verification.
line login --email ADDRESS --require-pinAlways use phone verification instead of sending this device's saved certificate.
line login --headless --email ADDRESSUse email login with headless storage on Linux.
line login --qr-urlPrint the one-time QR value for a trusted local QR tool.
line login --forceSkip the question before replacing a saved session.

--email can't be combined with --qr or --qr-url, and --require-pin needs --email. Both QR modes need an interactive terminal for input, but stdout can be redirected. Progress, QR codes, PINs, and warnings go to stderr; the final success message goes to stdout.

QR login problems#

  • QR code too wide. The CLI reports the width it needs and suggests --qr-url; it never crops the code. NO_COLOR turns off explicit colors.
  • Keeping the QR value private. Use --qr-url only with a trusted local tool. Don't share, upload, or save the value; it stays in your scrollback. QR images are never saved. Unset QRCODE_DEBUG, which can make the QR encoder write data.
  • QR code expired. Once LINE confirms the code expired, the CLI can show a new one, up to three per login. Network errors and PIN timeouts are not retried. The countdown is approximate; plain terminals and redirected stderr show only state changes.
  • Certificate errors. A rejected saved QR certificate doesn't fall back to a PIN, and an unknown certificate error also stops the login. Try email login if your account has one. The Diagnostic: verifyCertificate line contains only numeric codes: no QR value, PIN, certificate, token, or raw server response.
  • No Letter Sealing keys. If LINE approves the login but returns no usable keys, the CLI saves no session and does not treat the account as non-E2EE. LINE may already have replaced your previous Chrome-style session, and trying again can replace it again. Try email login if your account has one. The Diagnostic: qrCodeLoginV2 metadata line contains only fixed field states and a count: no key, token, or raw server response.

Signing in again with email#

Email login saves LINE's certificate for this device. The next line login --email with the same address sends it, so LINE may skip phone verification.

When that happens, LINE sends no new Letter Sealing keys. The CLI keeps your saved keys only if they still match your account's current key on LINE; otherwise it saves nothing and suggests --require-pin. If LINE still asks for verification, you get the usual PIN.

The certificate is never sent after a QR login, a logout, or for a different address, and --require-pin never sends it. A login that fails with the certificate is not repeated without it.

Last updated Dec 1, 2026Edit this page