Your LINE chats, in the terminal

LINE CLI is an unofficial Go CLI for your personal LINE account. Read chats, send messages and files, download attachments, and stream events from your terminal. Use interactive prompts or JSON output on macOS, Linux, and Windows. No bot account or LINE Messaging API setup is required.

Terminal
$ line send "Mina" --text "Landed! See you at 7."
Sent to Mina · end-to-end encrypted
What Mina sees in LINE
Landed! See you at 7.
Letter Sealing

Install

$ brew install kongesque/tap/line-cli

Important

Signing in may replace your existing LINE Chrome extension or another Chrome-style client session. LINE CLI saves one account per operating-system user.

Common tasks

What you want to doCommand
Find friendsline contacts --search "Alice"
Read recent messagesline messages "Alice" --limit 20
Send a text messageline send "Alice" --text "Hello!"
Send a fileline send "Alice" --file ./report.pdf
Download photos, video, audio, or filesline download
See chats with unread messagesline chats --unread
Mark a chat as readline read "Alice"
Accept or reject group invitationsline invites
Stream live eventsline watch
Check your setupline doctor