> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uselim.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 認証と疎通確認

> CLI のログイン、環境確認、staging と production の切り替え確認に使うコマンド。

# auth / doctor / env

新しい端末や staging 検証の開始時に、まず確認するべきコマンド群です。

## auth

```bash theme={null}
lim auth login
lim auth whoami
lim auth logout
```

private beta では次を使います。

```bash theme={null}
lim-beta auth login
lim-beta auth whoami
```

## doctor

```bash theme={null}
lim doctor
lim-beta doctor
```

`doctor` では次を確認できます。

* 実際に使われる API URL
* Web URL
* channel
* `healthz` の疎通
* Node.js のバージョン

## env

```bash theme={null}
lim env
lim-beta env
```

設定ファイルの値と、環境変数を加味した最終的な有効値を比較できます。

## staging 検証の基本手順

```bash theme={null}
lim-beta doctor
lim-beta env
lim-beta auth login
lim-beta auth whoami
```
