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#
| Option | Description |
|---|---|
--search NAME | find friends by name (cannot combine with --mid, --userid, --phone, or --blocked) |
--mid MID | look up a user MID directly; repeat for multiple IDs |
--userid VALUE | look up a user by LINE ID (leading @ optional) |
--phone VALUE | look up a user by international phone number, e.g. +819012345678 or '+81 9012345678' |
--blocked | list blocked contacts and blocked recommendations |
Output#
| Option | Description |
|---|---|
--limit N | maximum friend-list rows; 0 shows all (cannot combine with --mid, --userid, --phone, or --blocked) (default 20) |
--show-ids | show full IDs |
--json | write JSON to stdout |
Request#
| Option | Description |
|---|---|
--timeout DURATION | command 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