Reference Commands

line contacts

List friends, look up users by MID, LINE ID, or phone number (including people who aren't friends), or list blocked contacts. Direct MID lookup shows every requested ID; unavailable profiles exit with status 1. Use contacts block/unblock to manage blocks.

Usage#

Terminal
line contacts [options]
line contacts --mid MID [--mid MID ...] [--json]
line contacts --userid HANDLE [--json]
line contacts --phone +CCNUMBER [--json]
line contacts --blocked [--show-ids] [--json]
line contacts block USER_MID [--json]
line contacts unblock USER_MID [--json]

Find#

OptionDescription
--search NAMEfind friends by name (cannot combine with --mid, --userid, --phone, or --blocked)
--mid MIDlook up a user MID directly; repeat for multiple IDs
--userid VALUElook up a user by LINE ID (leading @ optional)
--phone VALUElook up a user by international phone number, e.g. +819012345678 or '+81 9012345678'
--blockedlist blocked contacts and blocked recommendations

Output#

OptionDescription
--limit Nmaximum friend-list rows; 0 shows all (cannot combine with --mid, --userid, --phone, or --blocked) (default 20)
--show-idsshow full IDs
--jsonwrite JSON to stdout

Request#

OptionDescription
--timeout DURATIONcommand deadline including preparation, e.g. 30s; 0 disables it

Examples#

Terminal
line contacts --search "Alice"
line contacts --mid USER_MID --json
line contacts --userid @alice --json
line contacts --phone "+81 9012345678" --json
line contacts --blocked --show-ids
line contacts block USER_MID