Timeouts and cancellation
Timeouts#
These commands accept --timeout DURATION:
| Commands | Default |
|---|---|
download | 2m |
doctor | 30s |
logout | 15s |
whoami, contacts, chats, members, invites, messages, send, read, react, unsend | 0 (no deadline) |
line send "Alice" --text "Hello" --timeout 30sThe deadline starts after options are parsed. It covers prompts and stdin, name
and message lookup, sign-in recovery, key preparation, and transfers.
--timeout 0 turns it off; individual HTTP timeouts still apply. A missed
deadline normally exits 1.
Ctrl-C and signals#
Ctrl-C cancels prompts, QR polling, and ordinary requests. SIGINT exits 130 and SIGTERM exits 143. Password echo is restored before the CLI exits. Legacy email sign-in requests keep their own HTTP timeouts. Local encryption and file writes finish their current step before the CLI checks for cancellation.
A change you interrupt may already have reached LINE. Check LINE before running it again; the CLI never replays it. Confirmed receipts, and the IDs of non-E2EE file messages already created, are kept even if a later upload or the output fails. Success output can therefore appear together with a signal exit code.
Replacing a saved session#
Login checks local storage before contacting LINE, and asks before replacing a
saved session that still works. Answer no to keep it. --force skips only
this question; storage checks, headless consent, session contention, and
protocol errors still apply.
If you cancel before the new session is saved, your old local session stays.
LINE may already have replaced the old Chrome-style session, though, and login
is not retried automatically. If saving ends with an uncertain result, run
line auth status --check. Don't restore an old copy or simply log in again. A
save that completed is still reported if a signal arrives afterwards.