Skip to content

Getting started

GenieClient targets .NET 10.

Terminal window
cd tools/GenieClient
dotnet build GenieClient.slnx
dotnet run -- --help # command list
dotnet run -- test-view --help # options of one command

Publish a standalone executable:

Terminal window
dotnet publish -c Release -r win-x64 --self-contained
# → bin/Release/net10.0/win-x64/publish/GenieClient.exe

The examples in these pages call it GenieClient; with dotnet run use dotnet run -- <command> ….

Terminal window
GenieClient set-endpoint -e http://localhost:5290 # remember the API
GenieClient auth -u system@example.com -p '<password>' # sign in once
GenieClient health # check it works and you have the System role
GenieClient test-view ./models/views # start testing
GenieClient <command> [positional arguments] [options]
  • Positional arguments come right after the command, with no flag name (for example the <path> in execute-script <path>). The pages show required ones as <name> and optional ones as [name].
  • Options have a long form (--endpoint) and often a short form (-e). Put a value after a space: -e http://localhost:5290.
  • Command and option names are not case-sensitive.
  • Quote values that contain spaces: -c "Head Office".

The parameter tables in these pages use these types:

Type What to pass Example
flag Nothing — writing the option turns it on; leaving it out keeps it off. --verify
text Any string. -c "Head Office"
integer A whole number. -n 3
URL An absolute http:// or https:// base URL of the API, without /api/v1 (a trailing /api/v1 or / is stripped anyway). -e https://api.example.com
path A file or folder path, absolute or relative to the current folder. ./models/views
list Several values separated by commas, no spaces (quote the whole list if values contain spaces). -o Site,WorkOrder
object name The name of a Genie object, i.e. the Name of a *.view.xml. WorkOrder
choice One of a fixed set of words, listed in the table. --report junit

Every command accepts:

Parameter Type Default Description
-v, --verbose flag off Print more detail while the command runs.

Every command that talks to a deployment (all except set-endpoint, workspaces, workspace-forget, validate-sql, validate-model and mcp) also accepts:

Parameter Type Default Description
-e, --endpoint URL saved endpoint, else http://localhost:5174 Which deployment to talk to. Also picks the workspace whose token is used.
-a, --auth flag off Ignore the stored token and sign in again (you are prompted for user and password).
-c, --company text (id or name) workspace’s saved company, else the account’s default The company the command acts in. A number is treated as a company id, anything else as a company name. Applies only to this command; nothing is changed on the server. The server must confirm you belong to that company, otherwise the command fails rather than silently acting in another company.
  1. -e/--endpoint on the command, if given.
  2. The endpoint saved with set-endpoint.
  3. The built-in default http://localhost:5174.

For a command that needs the server, GenieClient:

  1. Uses the stored token for that endpoint if one exists and has not expired (unless -a is given).
  2. Otherwise prompts for username/email and password (hidden), and, if the account uses MFA, for the verification code. The new token is stored for next time.

Tokens are kept for 60 minutes from sign-in; after that you are prompted again. Prompts need an interactive terminal — in scripts and CI, run auth first, or use the MCP server’s environment-variable credentials.

Everything is stored per user under %LOCALAPPDATA%\GenieClient\ (Windows) or the equivalent local-application-data folder on other systems:

GenieClient/
├── config.json # global defaults — the endpoint from set-endpoint
└── workspaces/
└── <host>_<port>-<hash>/ # one "workspace" per endpoint
├── token.dat # encrypted session token
├── workspace.json # { Endpoint, CompanyId } — the company from set-company
└── runs/<run-id>.jsonl # rows created by test-crud, for cleanup
  • A workspace is one deployment, identified by its endpoint URL — no naming or setup. Each has its own token, so you can work against several deployments at once without sharing credentials.
  • token.dat is encrypted with Windows DPAPI (only your Windows account on that machine can read it), or with AES under a machine/user-derived key elsewhere. It holds the access and refresh tokens, the user’s id, name and email, and the expiry time. Expired or unreadable tokens are deleted automatically.
  • Clear one workspace’s token with workspace-forget; delete the whole GenieClient folder to reset everything.
Code Meaning
0 The command succeeded (for test commands: every check passed).
1 A check failed, the server returned an error, or the arguments were invalid.

Test, validation and suite commands print a PASS/FAIL table; --report junit|json (where offered) also writes a machine-readable file for CI.

Each v* tag replaces the single release, so there is always one current version. It is self-contained, so no .NET runtime is needed: GenieClient-win-x64-setup.exe for Windows and GenieClient-linux-x64.tar.gz for Linux, x64 only. macOS builds are not published for now. The install commands are in the genie-releases repository, and need a classic PAT named genie-read with repo and read:packages. Set GENIE_UPDATE_TOKEN to it so updates work without update auth.

A profile is an endpoint plus an account, with its own token and company. GenieClient setup creates one interactively, or use profile add <name> -e <url> -u <user>, then profile list, use, show and remove. A command picks its target in this order: --profile, -e, GENIE_PROFILE, GENIE_ENDPOINT, the active profile, the saved default, then http://localhost:5174.

Output is results only, on stdout, with errors on stderr. --json writes one document, --quiet trims it, -v adds detail. <verb> --help --json describes a verb’s options.

Exit Meaning
0 Success
1 Failure or failed test
2 Usage error
3 Authentication required
4 Network or server error

With --json, --non-interactive or no terminal, nothing prompts. Supply GENIE_USER and GENIE_PASSWORD, or login --password-stdin, plus --otp for MFA.

docs search <text> searches a local copy of llms-full.txt, downloaded from the docs site on first use and refreshed by the daily terminal check. docs update refreshes it now and docs status shows its date. It follows master, so it can describe features newer than your deployment. For everything else, read the docs site. agents install writes the agent template to .claude/agents, or --target.

update installs the newest release and update --check only reports. Installed copies in Program Files or a system folder ask for administrator rights. update auth stores the download token; GENIE_UPDATE_TOKEN overrides it and gh auth token is the fallback. update config --mode notify|auto|off controls the daily check, which runs only in a terminal.

GenieClient shares its version with the Genie packages. See its changelog.