The cdrm CLI

Edit, preview, print and compile Conundrum notes from the terminal.
cdrm is the command line for Conundrum. It previews and edits notes in the terminal, prints them with math drawn as images, compiles whole directories of notes for websites, and runs the Conundrum server that Fluster and AI tools connect to.

Installing

cdrm is built from the conundrum_cli crate in the Conundrum repository.
cargo install --path packages/rust/conundrum_cli

The terminal features ( cdrm tui , cdrm print and math images) are part of the tui feature, which is on by default. To build a smaller cdrm without them, for example on a server, turn the default features off:

cargo install --path packages/rust/conundrum_cli --no-default-features
In Fluster The copy of cdrm bundled inside the Fluster Mac app is built without the tui feature. Fluster only uses it to run the Conundrum server.

Commands

Command What it does Needs tui
cdrm tui [PATH] Edit notes in a terminal editor beside a live preview. See The TUI. Yes
cdrm print FILE Print a note rendered for the terminal. See Printing notes. Yes
cdrm compile-project [DIR] Compile a project's notes once. See Projects. No
cdrm watch-directory [DIR] Compile a project's notes, then again whenever they change. No
cdrm parse-single-file FILE OUTPUT Compile one note to an HTML file. See Single files. No
cdrm run-server Run the Conundrum server. See The server. No
cdrm initialize-local-environment Create the local database the server uses. No

Run cdrm --help , or cdrm COMMAND --help , for the options of each command.

Logging

Every command accepts the same verbosity flags. The default level is info .

Flag Effect
-v , -vv , -vvv More output: debug, then trace.
-q , -qq Less output: warnings only, then errors only.

Settings

Most settings are environment variables. They're collected in Environment variables, including the ones that change colors.