linejs-cli
Installation
SKILL.md
linejs-cli
line is the command-line client for LINEJS. It talks to LINE directly, reuses the same E2EE/session machinery as the library, and exposes contacts, chats, OpenChat, media, Timeline/Note, calls, and raw LINE Thrift/REST methods. Result-producing commands have a --json mode, and the same surface is available to agents through a two-tool MCP server.
This skill is a map, not a frozen manual. The command set is large and still evolving; discover exact arguments with line help <command> or line commands --json instead of guessing.
Ground rules
- Check the session before re-authenticating. Run
line auth status --jsonfirst. Repeated logins can trigger LINE account restrictions. - Use
--jsonfor anything you parse. Human output is a table and is not a stable interface. - Confirm before observable or destructive actions. Sending, replying, uploading, unsending, leaving/kicking, blocking, profile edits, deletes, and logout affect a real account. Restate the target MID, chat name, and payload to the user first.
- Resolve MIDs; never guess them. Look up the contact or chat and use the returned
mid(u…user,c…group,r…room,s…OpenChat square,m…OpenChat chat). - Treat credentials as secrets.
~/.linejs/*.json,line auth token,line storage list --values, and--no-saveoutput contain auth tokens or E2EE keys. Do not print, log, or commit them. - Ask before automating a personal account. Using LINEJS may violate LINE's terms of service and can lead to account restrictions.