> For the complete documentation index, see [llms.txt](https://docs.realmigrator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmigrator.com/client-executables/chaicmdexe.md).

# chaiCmd.exe

* Command .exe file
* Suitable for testing configurations and settings
* Suitable for reporting

### A exemplary chaiCmd.exe usage

Create reporting with **server\_query.chai** (**carbon** => subfolder **testscripts**)

**chaiCmd.exe ..\testscripts\server\_query.chai**

Usage: server\_query.chai \[PROJECT] \[TOKENFILE] \[COMMAND] \[ARGS...]

Command can be one of the following:

| Command    | Result                                                              |
| ---------- | ------------------------------------------------------------------- |
| groups     | list groups                                                         |
| software   | list installed software (Additional args: \[GROUPID-optional])      |
| progress   | list client progress (Additional args: \[GROUPID-optional])         |
| errors     | list client errors (Additional args: \[GROUPID-optional])           |
| files      | get files report (Additional args: \[CLIENTID])                     |
| clientjson | clientjson download client json data (Additional args: \[CLIENTID]) |
| log        | download log file (Additional args: \[CLIENTID])                    |
| module     | download module data (Additional args: \[CLIENTID] \[MODULE])       |

### Report generation

> **chaiCmd.exe ..\testscripts\server\_query.chai \[projectname] token.txt>test.csv**

It creates a progress reporting. Optional use a GroupID to specify a report.

> **chaiCmd.exe ..\gkScriptModule\testscripts\server\_query.chai \[projectname] token.txt groups**

It creates a GroupID - name list


---

# 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://docs.realmigrator.com/client-executables/chaicmdexe.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.
