# Sign in


Run the login command for your setup:

| Setup | Command |
| --- | --- |
| macOS, Windows, or Linux with an unlocked desktop keyring | `line login` |
| Linux server or SSH without a desktop keyring | `line login --headless` |

1. Scan the QR code with LINE on your phone and approve the login.
2. If a PIN appears, enter it on your phone, including any leading zeros.
3. Wait for **Session saved securely**.

QR login needs usable Letter Sealing keys. For headless
requirements, see [Linux servers](https://kongesque.github.io/line-cli/guides/linux-servers/).

To sign in with an email address and password instead, see
[Login options](https://kongesque.github.io/line-cli/start/login-options/). Passwords are typed at a private prompt and
never saved. There is no password flag or password environment variable.

## Send your first message

Confirm your account, then pick a conversation:

```sh
line whoami
line chats
line messages
line send
```

`line send` asks you to choose a recipient. Type your message and press Enter.


---
Source: https://kongesque.github.io/line-cli/start/sign-in/
