Play NYT Games in your terminal, with local stats tracking.
Games
- Wordle (daily)
- Wordle Unlimited (offline)
- Connections (daily)
Not affiliated with The New York Times.
If a game you want isn't here, please contribute and add it to the list for nytgames-cli.
Installs the prebuilt binary from GitHub Releases.
curl -fsSL https://raw.githubusercontent.com/ph8n/nytgames-cli/main/scripts/install.sh | bashOptions:
- Pin a version:
curl -fsSL https://raw.githubusercontent.com/ph8n/nytgames-cli/main/scripts/install.sh | NYTGAMES_CLI_VERSION=X.Y.Z bash
- Choose install dir:
NYTGAMES_CLI_INSTALL_DIR=~/.local/bin
Installs the prebuilt binary from GitHub Releases.
curl.exe -fsSL https://raw.githubusercontent.com/ph8n/nytgames-cli/main/scripts/install.ps1 | powershell -NoProfile -ExecutionPolicy Bypass -Command -Windows builds are currently x64 only.
Options:
- Pin a version:
$env:NYTGAMES_CLI_VERSION="X.Y.Z"; curl.exe -fsSL https://raw.githubusercontent.com/ph8n/nytgames-cli/main/scripts/install.ps1 | powershell -NoProfile -ExecutionPolicy Bypass -Command -
- Choose install dir:
$env:NYTGAMES_CLI_INSTALL_DIR="C:\\Users\\You\\bin"
Download the package from the GitHub Release page:
- Debian/Ubuntu (
.deb):sudo apt install ./nytgames-cli_X.Y.Z_linux_amd64.deb - Fedora/RHEL (
.rpm):sudo dnf install ./nytgames-cli_X.Y.Z_linux_amd64.rpm
Arch:
- AUR template:
packaging/aur/nytgames-cli-bin/PKGBUILD
nytgames --help
nytgames --versionRun the menu:
nytgamesDirect launch:
nytgames wordle
nytgames unlimited # (or: nytgames wordle unlimited)
nytgames connectionsDev mode (bypasses the “already played today” screen):
nytgames --devMenu:
- Left/Right or
h/l: change game - Up/Down or
j/k: choose Play vs Stats - Enter/Space: confirm
- Ctrl+C: quit
Stats:
- Left/Right or
h/l: change month q/Esc: back- Ctrl+C: quit
Wordle:
- Type letters, Backspace, Enter to submit
q/Esc: menu- Ctrl+C: quit
Connections:
- Arrow keys or
h/j/k/l: move focus - Space: select
- Enter: submit
s: shuffled: deselect allq/Esc: menu- Ctrl+C: quit
- Stats are stored locally in a SQLite DB:
<app data dir>/nytg-cli/stats.db. - Typical locations:
- macOS:
~/Library/Application Support/nytg-cli/stats.db - Linux:
${XDG_DATA_HOME:-~/.local/share}/nytg-cli/stats.db
- macOS:
- To reset stats: delete
stats.db. - No telemetry; the only network requests are to fetch daily puzzles:
https://www.nytimes.com/svc/wordle/v2/YYYY-MM-DD.jsonhttps://www.nytimes.com/svc/connections/v2/YYYY-MM-DD.json
Tip: your terminal needs a Unicode-capable font (the UI uses box-drawing chars and ✓).
Requires Zig 0.15.1.
zig build
zig build test
zig build runBuild with a version string (used by nytgames --version):
zig build -Dversion=0.1.0- Remove the binary (wherever you installed it, e.g.
~/.local/bin/nytgamesor/usr/local/bin/nytgames). - Optional: remove your local stats DB (
nytg-cli/stats.db).
MIT — see LICENSE.