# 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: 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:

```
GET https://docs.realmigrator.com/client-executables/chaicmdexe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
