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#
| Option | Description |
|---|---|
--text TEXT | message text |
--stdin | read UTF-8 message text from stdin |
--file PATH | send a generic file attachment (up to 20 MiB) |
--image PATH | send a native still image (JPEG/PNG, up to 20 MiB / 40 million pixels; converted to JPEG; no --reply-to) |
--mentions JSON | explicit JSON mention array: [{"start":0,"end":5,"mid":"USER_MID"}] (UTF-16 offsets; text/stdin only) |
Target#
| Option | Description |
|---|---|
--reply-to ID | reply to a verified message (lookup: up to 10 pages / 1000 records / 30s) |
Delivery#
| Option | Description |
|---|---|
--require-e2ee | send only with Letter Sealing; stop if end-to-end encryption is unavailable |
--timeout DURATION | command deadline including preparation, e.g. 30s; 0 disables it |
Output#
| Option | Description |
|---|---|
--json | write JSON to stdout |
--show-ids | show 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