Reference Commands

line send

Send one message, file, or image. CHAT is a full ID or unique exact name; quote names with spaces. Uses Letter Sealing when available, otherwise HTTPS/TLS when LINE explicitly reports no E2EE support; LINE can read non-E2EE content. Use --require-e2ee to block it. Each send is attempted once.

Usage#

Terminal
line send CHAT (--text TEXT | --stdin | --file PATH | --image PATH) [options]

Message#

OptionDescription
--text TEXTmessage text
--stdinread UTF-8 message text from stdin
--file PATHsend a generic file attachment (up to 20 MiB)
--image PATHsend a native still image (JPEG/PNG, up to 20 MiB / 40 million pixels; converted to JPEG; no --reply-to)
--mentions JSONexplicit JSON mention array: [{"start":0,"end":5,"mid":"USER_MID"}] (UTF-16 offsets; text/stdin only)

Target#

OptionDescription
--reply-to IDreply to a verified message (lookup: up to 10 pages / 1000 records / 30s)

Delivery#

OptionDescription
--require-e2eesend only with Letter Sealing; stop if end-to-end encryption is unavailable
--timeout DURATIONcommand deadline including preparation, e.g. 30s; 0 disables it

Output#

OptionDescription
--jsonwrite JSON to stdout
--show-idsshow message IDs in human output

Examples#

Terminal
line send "Alice" --text "Hello!"
line send "Alice" --file report.pdf
line send CHAT_ID --stdin --json < message.txt