Skip to documentation
Pro 2.1.2
SquidSolver Pro / CLI reference

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.2Updated Read as text
On this page

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.

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 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 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
OptionMeaning
--iterations NRun until the saved total reaches N.
--add NRun N more iterations beyond the saved count.
Batch completionThe 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

Command reference

CommandPurpose
--help · help solve createTop-level help or help for a specific command.
guideBuilt-in user guide.
config schema · config examplesAccepted JSON schema and available examples.
config example <name>Print nlh-river, nlh-preflop or plo4-river as JSON.
version · license statusInspect the installed version or activation.
solve list · solve show <id>Find saved solves and inspect one.
solve estimate --config <file>Check a configuration and estimate memory.
solve create --config <file> --id <id>Create and save a new solve.
solve run <id> --add <N>Continue and save a solve.
solve config <id>Print a reusable configuration.
node show <id>Read a decision, with optional --path, --board and --breakdown.
export <id>Write study data. Use help export for all options.
serveProcess JSON Lines requests in one persistent session.
solve delete <id>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.

Need help with a setup? support@squidsolver.com