> 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/aikido-device-protection/miscellaneous-aikido-endpoint/aikido-doctor-cli.md).

# The aikido-doctor CLI

`aikido-doctor` is a command-line help tool that ships with Aikido Device Protection. It provides utilities to inspect, control, and troubleshoot the agent when something goes wrong.

## Usage

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

```
aikido-doctor [global options] command [command options]
```

{% endtab %}

{% tab title="Windows" %}

```
aikido-doctor.exe [global options] command [command options]
```

{% endtab %}
{% endtabs %}

Run `aikido-doctor help` (or `aikido-doctor <command> --help`) at any time to list the available commands and options. On Windows, use `aikido-doctor.exe`.

## Commands

Not every command is available on both platforms. The **Platform** column shows where each one works.

| Command          | Platform       | Description                                                                                                                                                                                                                                                                                                                  |
| ---------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `certs`          | macOS          | Manage CA certificates.                                                                                                                                                                                                                                                                                                      |
| `certconfig`     | macOS, Windows | Manage per-tool certificate trust configuration (node, git, java, etc.).                                                                                                                                                                                                                                                     |
| `pause`          | macOS, Windows | Pause Aikido Device Protection for a specified duration. **This fully disables all protection on the device while paused.**                                                                                                                                                                                                  |
| `unpause`        | macOS, Windows | Resume Aikido Device Protection if it is currently paused.                                                                                                                                                                                                                                                                   |
| `sbom`           | macOS, Windows | Inspect the software bill of materials (SBOM) collection.                                                                                                                                                                                                                                                                    |
| `secretscanning` | macOS          | Inspect shell-history secret scanning.                                                                                                                                                                                                                                                                                       |
| `diagnostics`    | macOS, Windows | <p>Collect and submit diagnostics to Aikido.<br><br>The <code>diagnostics</code> command is the command-line equivalent of the in-app <strong>Report A Problem</strong> flow. See <a href="/pages/wOBZvXm5vIjJd31nSVEf">Report a Problem / Device Protection Support</a> for when and how to send diagnostics to Aikido.</p> |
| `restart-daemon` | macOS, Windows | Restart the Aikido Device Protection daemon.                                                                                                                                                                                                                                                                                 |
| `version`        | macOS, Windows | Show the installed Device Protection version, build details, and service state.                                                                                                                                                                                                                                              |
| `help`, `h`      | macOS, Windows | Show a list of commands or help for one command.                                                                                                                                                                                                                                                                             |

## Global options

| Option            | Description                                                      |
| ----------------- | ---------------------------------------------------------------- |
| `--simple`        | Print only the installed Device Protection version, for scripts. |
| `--help`, `-h`    | Show help.                                                       |
| `--version`, `-v` | Print the version.                                               |


---

# 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/aikido-device-protection/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.
