> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/aikido-debaisu/miscellaneous-aikido-endpoint/aikido-doctor-cli.md).

# aikido-doctor CLI

`aikido-doctor` Aikido Device Protection に付属するコマンドラインヘルプツールです。問題が発生したときに、エージェントの確認、操作、トラブルシューティングを行うためのユーティリティを提供します。

## 使用方法

{% tabs %}
{% tab title="macOS" %}

```
aikido-doctor [グローバルオプション] command [コマンドオプション]
```

{% endtab %}

{% tab title="Windows" %}

```
aikido-doctor.exe [グローバルオプション] command [コマンドオプション]
```

{% endtab %}
{% endtabs %}

実行してください `aikido-doctor help` （または `aikido-doctor <command> --help`）をいつでも押すと、利用可能なコマンドとオプションの一覧を表示できます。Windows では、 `aikido-doctor.exe`.

## コマンド

すべてのコマンドが両方のプラットフォームで利用できるわけではありません。 **プラットフォーム** その列には、それぞれがどこで動作するかが示されています。

| コマンド              | プラットフォーム      | 説明                                                                                                                                                                                                                                               |
| ----------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `certs`           | macOS         | CA 証明書を管理します。                                                                                                                                                                                                                                    |
| `certconfig`      | macOS、Windows | ツールごとの証明書信頼設定（node、git、java など）を管理します。                                                                                                                                                                                                           |
| `pause`           | macOS、Windows | Aikido Device Protection を指定した期間一時停止します。 **一時停止中は、デバイス上のすべての保護が完全に無効になります。**                                                                                                                                                                     |
| `unpause`         | macOS、Windows | 現在一時停止中であれば、Aikido Device Protection を再開します。                                                                                                                                                                                                     |
| `sbom`            | macOS、Windows | ソフトウェア部品表（SBOM）の収集内容を確認します。                                                                                                                                                                                                                      |
| `secretscanning`  | macOS         | デバイス上のシークレットスキャンを確認します。                                                                                                                                                                                                                          |
| `device-identity` | Windows       | デバイスが登録に使用する ID を表示またはリセットします。実行 `device-identity reset` VM のクローンまたはスナップショットから作成されたマシンで。参照： [クローンした VM とイメージ](#cloned-vms-and-images).                                                                                                           |
| `diagnostics`     | macOS、Windows | 診断情報を収集して Aikido に送信します。\n\nこの `diagnostics` コマンドは、アプリ内の **問題を報告** フローに相当します。参照： [問題を報告 / Device Protection サポート](/docs/docs-ja/aikido-debaisu/miscellaneous-aikido-endpoint/endpoint-information-for-support.md) Aikido に診断情報を送信するタイミングと方法について。 |
| `restart-daemon`  | macOS、Windows | Aikido Device Protection デーモンを再起動します。                                                                                                                                                                                                            |
| `バージョン`           | macOS、Windows | インストールされている Device Protection のバージョン、ビルドの詳細、サービスの状態を表示します。                                                                                                                                                                                       |
| `help`, `h`       | macOS、Windows | コマンドの一覧、または特定のコマンドのヘルプを表示します。                                                                                                                                                                                                                    |

Aikido が作成する証明書バンドルに組織独自の CA を追加するには、参照： [カスタム CA 証明書の追加](/docs/docs-ja/aikido-debaisu/miscellaneous-aikido-endpoint/custom-ca-certificates.md).

## クローンした VM とイメージ

エージェントが最初に登録したときにデバイス ID が作成されます。VM に Device Protection をインストールしてからその VM をクローンまたはスナップショットすると、そこから作成された各マシンは同じ ID を持つため、あなたの [デバイス一覧](https://app.aikido.dev/endpoint-protection/devices) その結果、1 台を除いてすべてが見えなくなります。

Windows では、クローンまたはスナップショットを展開した後に：

1. そのマシンに固有のホスト名を設定します。
2. デバイス ID をリセットします：

{% code overflow="wrap" %}

```powershell
aikido-doctor.exe device-identity reset
```

{% endcode %}

そのマシンは次回のチェックイン時に独自のデバイスとして登録されます。すでにある場合は、古い共有エントリをデバイス一覧から削除してください。

Linux では、デバイス ID は次のファイルに従います `/etc/machine-id` その代わりに、そのファイルをイメージ作成の最後の手順で切り詰めてください。そうすれば、各マシンは初回起動時に独自の ID を生成します。

## グローバルオプション

| オプション             | 説明                                                      |
| ----------------- | ------------------------------------------------------- |
| `--simple`        | インストールされている Device Protection のバージョンのみを出力します。スクリプト向けです。 |
| `--help`, `-h`    | ヘルプを表示します。                                              |
| `--version`, `-v` | バージョンを出力します。                                            |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/aikido-debaisu/miscellaneous-aikido-endpoint/aikido-doctor-cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
