Send messages and files
line send "Alice" --text "Hello!"
line send "Alice" --stdin < message.txt
line send "Alice" --text "Sounds good" --reply-to MESSAGE_ID
line send "Family group" --file ./report.pdf
line send "Family group" --file ./report.pdf --reply-to MESSAGE_IDUse exactly one of these:
| Option | Sends | Limit |
|---|---|---|
--text | A text message. | 1 to 10,000 UTF-16 code units. |
--stdin | Text read from standard input. | 1 to 10,000 UTF-16 code units. |
--file | Any file. Images, video, and audio arrive as ordinary files with their original bytes. | 20 MiB. |
--image | A native still image (JPEG or PNG). See Native images. | 20 MiB. |
Encryption#
Sends use Letter Sealing whenever LINE supports it for the chat. When LINE
explicitly reports no E2EE support, the CLI sends over HTTPS/TLS without asking:
the transfer is encrypted, but LINE can read the content. Scripts, --json,
--error-format=json, and --stdin behave the same way and never prompt.
To send only with Letter Sealing:
line send CHAT_ID --file ./report.pdf --require-e2ee --jsonIf E2EE isn't available, this stops with encryption_required before anything
is sent.
Support for files is checked separately from text. Missing or invalid capabilities, missing keys, incomplete membership, and transport errors never lead to a send without Letter Sealing. A group key can be registered only during a send you run, with a complete list of current members. LINE's Encryption Report 2025 explains TLS, Letter Sealing, and media E2EE in the official clients; how this CLI's media works with them still needs separate validation.
Receipts#
The terminal receipt says end-to-end encrypted or
transport encrypted (no E2EE). --json reports the message ID, chat ID,
encryption status, group-key registration, and request sequence. In JSON,
encrypted: false means no Letter Sealing; HTTPS/TLS still protected the
transfer.
Caution
Each send, upload, or other remote change is attempted once. A non-E2EE file message can be created before its upload fails; structured errors keep its confirmed ID. If the outcome is unknown, check LINE before trying again.
Native images#
Encrypted --image sends are turned off, because the current full-image and
preview format reuses an encryption stream. Such a send stops before any upload,
group-key registration, or message creation, and automatic non-E2EE delivery
doesn't get around it. Use --file to send the original image as a file,
subject to the file checks above.
When LINE explicitly supports non-E2EE images, you can send one. HTTPS/TLS protects the transfer, but LINE can read the image:
line send CHAT_ID --image ./screenshot.png --json--image accepts real JPEG or still PNG data up to 20 MiB, 40 million decoded
pixels, and 16384 pixels per side. Before the session is opened, the CLI applies
the EXIF orientation, removes metadata, fills transparency with white, and
converts the image to JPEG at quality 60, keeping the aspect ratio within
1280×1280 total pixels.
GIF, animated PNG, BMP, WebP, native audio and video, and image replies are not supported. Images can't be combined with text, stdin, files, or mentions. Native-image sends haven't been verified against live LINE yet; see the protocol evidence.