# Command line SquidSolver Pro includes a command-line interface. Create, run, inspect and export No-Limit Hold’em and PLO 4 solves on Windows or macOS, with JSON output. Pro 2.1.2 · Updated 2026-11-29 · Web page: https://squidsolver.com/docs/cli ## Prepare your solver 1. Install Pro 2.1.1 or later. 2. Open the desktop app, activate your purchased license, select NLH or PLO 4 and wait for preparation to finish. Do this once after installing each version. 3. Fully quit the app before using solver commands. Keep one CLI process in charge of the saved solves at a time. > Help, guide, schema and example commands work without activation and while the app is open. Solving requires a purchased license for the selected game. A PLO-only owner must select --solver plo4. ## Run the CLI on macOS Run the installed executable with cli. Adjust the path if you installed the app somewhere else, such as your user Applications folder. ```shell "/Applications/SquidSolver Pro.app/Contents/MacOS/squidsolver-pro-desktop" cli --help ``` For the shorter commands in this manual, create a symlink named squid and add its directory to your shell’s PATH. The squid name enters CLI mode automatically. ```shell mkdir -p "$HOME/.local/bin" ln -s "/Applications/SquidSolver Pro.app/Contents/MacOS/squidsolver-pro-desktop" "$HOME/.local/bin/squid" export PATH="$HOME/.local/bin:$PATH" squid --help ``` The PATH change above lasts for the current terminal session. Keep it in your shell configuration if you want it in new sessions. If a squid file already exists, inspect it before replacing it. ## Run the CLI on Windows Call the installed executable from a subprocess so you can capture output and check the exit status. This Python example prints help; replace --help with the command arguments you need. ```python import subprocess exe = r"C:\Program Files\SquidSolver Pro\squidsolver-pro-desktop.exe" result = subprocess.run( [exe, "cli", "--help"], capture_output=True, text=True, encoding="utf-8", ) print(result.stdout) print(result.stderr) raise SystemExit(result.returncode) ``` In the examples below, squid means that executable followed by cli. The [Python walkthrough](https://squidsolver.com/docs/automation#python) runs a complete workflow on Windows or macOS. ## Your first NLH solve This river example uses a 3 BB pot, 20 BB remaining stacks, full ranges and a half-pot opening bet. Download [nlh-river.json](https://squidsolver.com/docs/files/v2.1.1/nlh-river.json) or print the bundled example. Start in a new working directory so the files below do not overwrite your own files. ```shell squid config example nlh-river > spot.json squid solve estimate --config spot.json squid solve create --config spot.json --id my_river --name "My river" squid solve run my_river --iterations 100000 squid solve show my_river squid node show my_river --breakdown squid export my_river --streets postflop --board AsKd7c2h9s --out my_river.json.gz ``` Edit the pot, stacks, board, ranges and bet sizes before estimating if you want a different spot. Create saves the setup at zero iterations; run solves and saves the result. The small count above is a workflow example, not a convergence target. ```shell squid solve run my_river --add 100000 squid solve config my_river > reusable.json ``` | Option | Meaning | | --- | --- | | --iterations N | Run until the saved total reaches N. | | --add N | Run N more iterations beyond the saved count. | | Batch completion | The final count can be slightly above the requested target. | ## Solve PLO 4 from the CLI Use the PLO example and put --solver plo4 before each solver command. The example uses a 3 BB river pot, 4 BB remaining stacks and two weighted four-card hands per player. ```shell squid config example plo4-river > plo.json squid --solver plo4 solve estimate --config plo.json squid --solver plo4 solve create --config plo.json --id my_plo --iterations 100000 squid --solver plo4 node show my_plo squid --solver plo4 export my_plo --streets postflop --board 2c3d7h9sJc --out my_plo.json.gz ``` > Selecting PLO does not convert an NLH configuration. PLO needs gameVariant omaha4, bettingStructure pot_limit and the PLO options included in its example. Read four-card hand results from omahaHands.rows. Readout availability must be checked before interpreting missing values. ## Command reference | Command | Purpose | | --- | --- | | --help · help solve create | Top-level help or help for a specific command. | | guide | Built-in user guide. | | config schema · config examples | Accepted JSON schema and available examples. | | `config example ` | Print nlh-river, nlh-preflop or plo4-river as JSON. | | version · license status | Inspect the installed version or activation. | | `solve list · solve show ` | Find saved solves and inspect one. | | `solve estimate --config ` | Check a configuration and estimate memory. | | `solve create --config --id ` | Create and save a new solve. | | `solve run --add ` | Continue and save a solve. | | `solve config ` | Print a reusable configuration. | | `node show ` | Read a decision, with optional --path, --board and --breakdown. | | `export ` | Write study data. Use help export for all options. | | serve | Process JSON Lines requests in one persistent session. | | `solve delete ` | Delete the local solve and its files. Inspect the ID first. | ## Read a specific decision node show defaults to the root. Copy action labels from the returned children. Pass --path as slash-separated labels or a JSON array string; use the JSON array form if a label contains a slash. Add --board for a concrete later board. NLH allows repeated --path arguments; PLO accepts one path per request. Large PLO readouts are easier to save to a file and inspect selectively. Check availability rather than treating an absent row as zero. Solver commands write JSON to stdout. Progress and errors go to stderr, which can also contain plain diagnostic text. Check the exit status before reading a result. See [Troubleshooting](https://squidsolver.com/docs/troubleshooting#exit-codes).