List of commands

The command line, located in the status bar, opens by pressing the SPACE key. As you type a command, a list of suggestions appears automatically: the TAB key (or SHIFT-TAB) cycles through the suggestions and completes the command, while ESC closes the list (a second ESC closes the command line). The UP and DOWN keys remain reserved for the command history.

Global operations

Command

Action

new, ne, n

Create a new database.

open, op, o

Open an existing database.

open_group, og

Opens a database in a new tab group, the current database staying open in its own (see Open libraries).

import_db, idb

Import and merge another database.

export_db, edb

Export the current selection to a new database.

quit, q

Close blunderDB.

help, he, h

Open blunderDB help.

meta

Display database metadata.

eval, epc

Opens the Eval panel (Effective Pip Count, winning probability and cube verdict in bearoff). epc is this panel’s former name, kept for compatibility.

transcribe, tr

Opens the Transcription panel: the match drafts being typed in, and what it takes to start one.

direct

Opens the Tournaments panel to direct a tournament, and closes it again. While a direction is open there, the main area shows the tournament instead of the board; any other tab brings the board back.

reference, ref

Shows/hides the Reference data panel: MET, take points, gammon values, aggregated view and Neil’s numbers (see Reference data panel).

met

Opens the Reference data panel on the Kazaross-XG2 match equity table.

cm

Opens the cube matrix: the current position’s verdict at every score of a 5-, 7- or 9-point match.

tags

Opens the tag vocabulary: the tags used in this database, with the number of positions, clickable to run the search.

log

Opens the activity log: the last two hundred lines of the log file, with what it takes to copy them into a report, or to open the folder holding them.

train

Opens the Training panel. With an argument, it opens and starts: train scores (the score card of a randomly drawn score; train tp and train takepoint are synonyms), train pips (the pip count of both sides; train pip is a synonym), train bearoff (the EPC of both sides on a generated position; train epc is a synonym), train evaluation (the win chances and the cube action of a generated position, in money play), train decision (an analysed decision from the browsed list: the move is played on the board, the cube action is chosen in the panel; train quiz is a synonym), train opening (the opening move or the reply of a game at a score, according to the roll remembered in the launcher, played on the board and judged against the opening book; train ouverture and train book are synonyms).

duel

Opens the Duel panel: a match against the Bot, with blunderDB as Arbiter (see Duel panel).

tp2, tp2_live, tp2_last, tp4, tp4_live, tp4_last

Opens the Reference data panel on the Take points tab, which gathers the tables for the cube at 2 and 4, for long races and for the last roll: these six commands open the same tab.

gv1, gv2, gv4

Opens the Reference data panel on the Gammon values tab, which gathers the tables for the cube at 1, 2 and 4: these three commands open the same tab.

Positions and navigation

Command

Action

import, i

Imports one or more positions/matches from a file (xg, xgp, sgf, mat, txt, bgf). With an argument — import XGID=… or import OGID=… — reads the identifier instead of opening a file picker, for when it comes from a message, a forum or a script.

delete, del, d

Deletes the current position (with a confirmation); the delete goes through the trash and stays undoable for thirty days.

trash

Opens the trash: what was deleted, and what it takes to restore it.

resume

Lists the imports nothing has finished (application stopped) and resumes the one you pick, once you point at the folder or files again.

[number]

Go to the specified index position.

[number]%

Go to that percentage of the list: 0% the first position, 50% the middle, 100% the last.

grid, gr

Opens the contact sheet: the browsed list as a grid of mini-boards, one page of twenty-four at a time; choosing a thumbnail opens its position.

list, l

Show the analysis of the current position.

comment, co

Show/write comments.

rollout, ro [fast|standard]

Rolls out the current position (with the setting chosen in the gammonNet tab of the configuration, or the named preset) and opens the Analysis panel. ro search [fast|standard] runs it on the displayed list, after a confirmation with the total; ro stop stops the rollout in progress. rapide is a synonym of fast and recherche of search.

history, hi

Open the search panel (the search history is in its History tab).

stats, st

Show/hide the statistics panel.

match, ma

Show/hide the match panel.

collection, coll

Show/hide the collections panel.

lesson, le [N | edit [N]]

Without an argument, lists the database’s lessons in the status bar; le N opens lesson N at its first step; le edit opens the lesson editor, le edit N on lesson N (see Lessons).

study, sq

Opens the cross-import study queue: your blunders that nothing has handled yet, from the most costly to the least costly (see Blunders nothing has handled yet).

#tag1 tag2 …

Tag the current position.

e

Load all positions from the database.

blunders, bl [n]

Load the worst mistakes (equity/MWC) into the analysis view, according to the current statistics filter. An optional number chooses how many to load (bl 50); 10 by default.

m

Navigate to the last visited match.

Editing and search

Command

Action

write, wr, w

Save the current position.

write!, wr!, w!

Update the current position.

s

Search for positions with filters. Refused in a collection or a match, where it would replace the list being studied: the status bar then points to ss.

ss

Search among the positions on screen: current results, open collection or match under review.

Search Filters

This table is the reference for the search grammar: the command line, the filter library and the --query flag of blunderdb search all read the same tokens. The CLI Equivalent column gives, when one exists, the search flag that does the same thing (see Command Line Interface (CLI)); a dash marks a filter that only the grammar expresses.

Six tokens do not carry their value: they read it from the search board. cube and score take up the cube and the score set there, d the decision type, D and D1 the dice, x the structure drawn in the Except tab. A roll is therefore never written into the token: D65 does not exist, only the exclusion form carries its digits (xD65). On the command line, where there is no board, these tokens compare against an empty board; it is the flags of the third column that must be used there instead.

A single token ranks instead of narrowing: like orders the result by ascending distance to a target position, and every other token narrows the set it ranks.

Errors and equities are counted in thousandths of equity — the millipoints of the table below: E>100 keeps the moves that cost at least a tenth of a point, one point being worth 1000 millipoints.

Two full searches:

  • s p>30 w40,60 xco — more than 30 pips behind, between 40% and 60% winning chances, no comment.

  • s ph:race E>50 co:xg — in a race, a move that cost at least 50 millipoints, and a comment coming from eXtreme Gammon.

Query

Action

CLI Equivalent

cube, cub, cu, c

The position checks the cube configuration.

--cube

score, sco, sc, s

The position checks the score.

--score1 --score2

d

The position checks the dice or the cube decision.

--decision

dd

The decision is a cube action of type Double / No Double (not a Take / Pass answer). Implies a cube decision.

--cube-response double

dr

The decision is a Take / Pass answer. Implies a cube decision; together with dd, dr takes precedence.

--cube-response takepass

D

The position matches the dice roll (both dice, any order).

--dice 6,5

D1

The position matches the dice roll on the first die only (the first die’s value appears on either die of the position).

--dice 6

xD65

The position was not played with the 6-5 roll (any order). The value is given in the token; repeatable to exclude several rolls (xD65 xD54).

—

nc

The position has no contact.

—

ph:race

The position is in a given phase of the game: opening, middlegame, race or bearoff. Repeatable (ph:race ph:bearoff). The label is derived from the board and never editable; blunderdb repair recomputes it.

--phase

gt:holding

The position falls under a given plan of play, from the point of view of the player on roll: race, bearin (bearing in under contact), crunch, backgame, acepoint, blitz, primevprime, mutualholding, holding, contact. Repeatable (gt:holding gt:mutualholding). A derived label like the phase: computed from the board, never editable, recomputed by blunderdb repair.

--game-type

#prime

The position carries this tag in one of its comments. A tag is a #word written in the prose; nothing declares it. The comparison is delimited, so #prime does not find #priming — that is the whole difference from the text filter, which looks for a substring. Repeatable, and tags add up (#prime #backgame asks for both): a position carries several tags, so naming two means “both”.

—

n>x

The position was met at least x times in the database — the number of decisions taken on it, all matches and all players together; with pl, pl! or op, only that player’s occurrences count. Forms n>3, n<2, n3,10 and n4 (exactly four).

—

M

The position or the mirror one meets the filters.

—

i

The position was imported on its own, not brought in by a match import.

--individual

fl

The position was flagged in the source software, when importing an eXtreme Gammon match.

--flagged

x

The position contains none of the checkers of the exclusion structure (the “Except” tab of the search panel).

—

p>x

The player has at least x pips behind in the race.

--pip-min

p<x

The player has at most x pips behind in the race.

--pip-max

px,y

The player has between x and y pips behind in the race.

--pip-min --pip-max

P>x

The player has a race of at least x pips.

—

P<x

The player has a race of at most x pips.

—

Px,y

The player has a race between x and y pips.

—

e>x

The equity (in millipoints) of the position is greater than x.

—

e<x

The equity (in millipoints) of the position is less than x.

—

ex,y

The equity (in millipoints) of the position is between x and y.

—

E>x

The error of the move played by player 1 (in millipoints) is greater than x.

--move-error-min

E<x

The error of the move played by player 1 (in millipoints) is less than x.

--move-error-max

Ex,y

The error of the move played by player 1 (in millipoints) is between x and y.

--move-error-min --move-error-max

mg>x

Difficulty of the decision: the margin (in millipoints, the scale of E) between the best choice and the next one in the stored analysis is above x: an obvious decision. Checker play: the two best moves; double: no double against double; take: take against pass. A position without analysis or with a single candidate never matches. E measures the player, mg the position: E<1 mg<20 keeps the close decisions played right.

--margin

mg<x

The margin between the best choice and the next one is below x millipoints: a close decision.

--margin

mgx,y

The margin between the best choice and the next one is between x and y millipoints, bounds included.

--margin

tm>x

Player 1 took more than x seconds to decide (checker play or cube; x may be a decimal). A play whose duration is unknown never matches. With E, the duration and the error are those of the same play.

—

tm<x

Player 1 took less than x seconds to decide.

—

tmx,y

Player 1 took between x and y seconds to decide, bounds included.

—

w>x

The player has winning chances greater than x%.

--winrate-min

w<x

The player has winning chances less than x%.

--winrate-max

wx,y

The player has winning chances between x% and y%.

--winrate-min --winrate-max

g>x

The player has gammon chances greater than x%.

—

g<x

The player has gammon chances less than x%.

—

gx,y

The player has gammon chances between x% and y%.

—

b>x

The player has backgammon chances greater than x%.

—

b<x

The player has backgammon chances less than x%.

—

bx,y

The player has backgammon chances between x% and y%.

—

W>x

The opponent has winning chances greater than x%.

—

W<x

The opponent has winning chances less than x%.

—

Wx,y

The opponent has winning chances between x% and y%.

—

G>x

The opponent has gammon chances greater than x%.

—

G<x

The opponent has gammon chances less than x%.

—

Gx,y

The opponent has gammon chances between x% and y%.

—

B>x

The opponent has backgammon chances greater than x%.

—

B<x

The opponent has backgammon chances less than x%.

—

Bx,y

The opponent has backgammon chances between x% and y%.

—

o>x

The player has at least x checkers off.

--off1-min

o<x

The player has at most x checkers off.

—

ox,y

The player has between x and y checkers off. ox alone: exactly x checkers off.

—

O>x

The opponent has at least x checkers off.

--off2-min

O<x

The opponent has at most x checkers off.

—

Ox,y

The opponent has between x and y checkers off.

—

k>x

The player has at least x backcheckers.

—

k<x

The player has at most x backcheckers.

—

kx,y

The player has between x and y backcheckers.

—

K>x

The opponent has at least x backcheckers.

—

K<x

The opponent has at most x backcheckers.

—

Kx,y

The opponent has between x and y backcheckers.

—

z>x

The player has at least x checkers in the zone.

—

z<x

The player has at most x checkers in the zone.

—

zx,y

The player has between x and y checkers in the zone.

—

Z>x

The opponent has at least x checkers in the zone.

—

Z<x

The opponent has at most x checkers in the zone.

—

Zx,y

The opponent has between x and y checkers in the zone.

—

bo>x

The player has at least x blots in the outfield.

—

bo<x

The player has at most x blots in the outfield.

—

box,y

The player has between x and y blots in the outfield.

—

BO>x

The opponent has at least x blots in the outfield.

—

BO<x

The opponent has at most x blots in the outfield.

—

BOx,y

The opponent has between x and y blots in the outfield.

—

bj>x

The player has at least x blots in the jan.

—

bj<x

The player has at most x blots in the jan.

—

bjx,y

The player has between x and y blots in the jan.

—

BJ>x

The opponent has at least x blots in the jan.

—

BJ<x

The opponent has at most x blots in the jan.

—

BJx,y

The opponent has between x and y blots in the jan.

—

t'word1;word2;...'

The position comments contain at least one of the words.

—

co

The position carries a comment, whatever its content.

--has-comment

xco

The position carries no comment.

--no-comment

co:user

The position carries a comment of a given origin: user (written by you), xg, gnubg, bgf (brought in by a match import) or unknown. Repeatable (co:xg co:gnubg).

--comment-origin

au'Alice'

The position carries a comment signed by this author (full name, case-insensitive).

--comment-author

m'pattern1,pattern2,...'

The best checker moves containing at least one of the patterns.

—

m'ND,DT,DP,...'

The best cube decisions for No Double/Take, Double Take, Double Pass.

—

T>x

Date the position was added to the database, after x (YYYY/MM/DD). This is not the match date (md): adding sets it and merging two databases keeps it.

—

T<x

Date the position was added to the database, before x (YYYY/MM/DD). This is not the match date (md).

—

Tx,y

Date of position addition between x and y (YYYY/MM/DD).

—

max

Search in match with ID x (e.g. ma3).

--match-ids

max,y

Search in matches with IDs from x to y (e.g. ma2,5).

--match-ids

tnx

Search in tournament with ID x (e.g. tn1).

--tournament-ids

tnx,y

Search in tournaments with IDs from x to y (e.g. tn1,3).

--tournament-ids

tn’name’

Search in tournaments whose name is name: case is ignored and * stands for any sequence of characters (e.g. tn'open*').

--tournament-name

rd:x

Search in matches of round x (e.g. rd:3, rd:Final): the round text is compared case-insensitively, * stands for any sequence of characters. Repeatable (rd:1 rd:2): either one.

--round

ml:x

The match length is x points. Forms ml:7, ml:5,9, ml>5 and ml<9 (bounds included).

--match-lengths

aw:x

The player is x points away from winning the match, whatever its length. Forms aw:4, aw:2,5, aw>3 and aw<5 (bounds included). The Crawford and post-Crawford games both count as 1 point (aw:1 keeps both); money play never matches. With M, aw and AW swap.

--away

AW:x

The opponent is x points away from winning the match, in the forms of aw. aw:2 AW:4: the player leads 2-away to 4-away; aw:4 AW:4: both players are 4 points away.

--opponent-away

cr

The position is played in the Crawford game: one player is 1 point away, the cube is dead.

--crawford game

pcr

The position is played after the Crawford game: one player is 1 point away, the cube is alive. AW:1 pcr: the opponent is 1 point away, post-Crawford. cr and pcr together match nothing.

--crawford post

md:x..y

Match date, read from the position’s match_date column (the date of the oldest match that reaches it), not the date the analysis was created (T). Each bound is a year, a month or a day (2024, 2024-06, 2024-06-15) and covers its whole span, bounds included: md:2024-01..2024-12 runs from 1 January to 31 December 2024. Forms md:2024 (the whole year), md>2024-06 and md<2024-06. The separator / is equivalent to - (md:2024/06).

--match-date

idx

Search for the position with identifier x (e.g. id12).

--position-ids

idx,y

Search for the positions with identifiers x to y (e.g. id5,10).

--position-ids

pl'name'

Search positions from a match involving the named player, at either seat (e.g. pl'Alice'). Case is ignored and * stands for any sequence of characters (pl'Ali*').

--player

pl!'name'

Only the decisions made by this player: the player on roll is the one who occupies the seat of that name in the match (player 1 or player 2). Same case and wildcard rules as pl.

--player --seat-only

op'name'

Only matches where this player is the opponent of the pl player (pl'Alice' op'Bob': Alice against Bob, on either side; with pl!, only Alice’s decisions). Without pl, op alone designates a player at either seat, like pl. Same case and wildcard rules.

--opponent

pr>x

The match PR of the player who made the decision is at least x, read from the per-match statistics at that player’s seat (not the opponent’s PR); a match without a PR is excluded. Forms pr>8, pr<5 and pr4,9, bounds included; x may be a decimal.

--pr

ad:xg

Engine and depth of the analysis recorded for the position. Engines: xg, gnubg, bgblitz, hedgehog, gammonnet (start of the engine name, case ignored). Depths: 3ply (exactly 3 plies), 3ply+ (at least 3 plies), book (opening book), rollout (rollout, including XG Roller and Roller++). Repeatable: engines are alternatives, so are depths, and an engine and a depth must both match (ad:xg ad:gnubg ad:3ply+).

--analysis

like, like42, like<1, like42<1

Ranks the result by ascending distance, in rolls, to a target position instead of narrowing it: like takes the current position, like42 the one with index 42; without a written ceiling, the search goes up to two rolls, or fewer if the setting in the Interface tab lowers it, like<1 stops at one, like42<1 combines the target and the ceiling. Beyond two rolls the search is refused, as is a starred form (like42*), which no longer exists. See Search Panel.

—

The pl, pl!, op, tn, au, m and t values open with a double quote or an apostrophe and close with either. A token that keeps a quote without forming a complete value is ignored, and blunderdb search --query reports it. A tag may contain an apostrophe (#l'ouverture), never a double quote. The semicolon is the separator of identifier and tag lists: it appears in no value, and ma1;2 is not a token (write ma1 ma2).

Transcribing from a terminal

The command line has no transcription command: moves are entered in the Transcription tab. Outside the application, they go through blunderdb call (Transcribing through the API), for example blunderdb call transcriptions.apply --db base.db --if-match 3 --json '{"id":1,"gesture":{"Kind":"validate"}}'. --if-match names the revision returned by the previous call; every call is its own session, with no sessionId and no undo from one call to the next.

Various commands

Command

Action

clear, cl

Clear the command history.