Skip to main content

BidManager Command-Line Tools: Auto-loading and Overrides

This guide shows the minimum you have to type for each of the five BidManager command-line tools once the desktop app has been configured — Generator, Aggregator, Editor, Converter, and ibd2ibdx.

If you have already used the graphical BidManager Desktop app and set your directories in its Settings pane, most of BidManager's command-line tools will pick those directories up automatically. You do not need to repeat every path on the command line.


How Auto-loading Works​

When a tool needs a directory or a file path, it looks in these places in this order and takes the first one that has a value:

  1. The flag you typed on the command line.
  2. A key inside your Defaults.csv file.
  3. The value the graphical app has stored in its settings.

If none of those five places has a value, the tool either refuses to run (printing a message listing what it tried) or writes an unpopulated file and continues (for specific cases documented below).

The Golden Rule

If you have set something in the graphical app or in Defaults.csv, you never have to type it on the command line. You only ever pass a flag when you want to override what the app or the CSV already knows.

Configuration Files​

Two files matter to the command-line tools:

  • settings.json — Written when you change anything in the graphical app's Settings pane. On Windows, it lives at %APPDATA%\bidmanager-desktop\settings.json. You do not need to open or edit this file by hand; the CLI tools read it directly.
  • Defaults.csv — A comma-separated text file listing directory and database paths, one per line (e.g., DirBid, DirSub, PoolDB). By default, tools look for it at C:\IENERGY\Defaults.csv.
note

Defaults.csv outranks settings.json. It is the format the underlying market engine reads, so it is the source of truth for the six paths both files cover. If your CSV lives elsewhere, set the BIDMANAGER_DEFAULTS_CSV environment variable to the file's full path.


The Five Tools​

Follow the tabs below to see the minimum commands, auto-loaded elements, and common overrides for each tool.

1

Generator (bidmanager-generator)​

What it does: Reads WESM's RTDOE (energy) and RTDOR (reserve) five-minute CSV files for a given delivery date and writes one bid file (.bidx) per day plus a per-day log.

Minimum command:

set "PATH=C:\Program Files\iPool\resources\engine;%PATH%"

bidmanager-generator.exe -t 20260315 -ndays 7

(Replace 20260315 with your desired date in YYYYMMDD format).

What auto-loads: The Generator will find the output directory, RTDOE input directory, RTDOR input directory, and reference database (SysWESM) automatically.

What you always pass: -t YYYYMMDD — the delivery date. There is no auto-loaded default for the date.

Common override flags:

  • -bdir PATH — output directory for the finished bid file.
  • -rtdoe PATH — RTDOE input directory.
  • -rtdor PATH — RTDOR input directory.
  • -srcdb PATH — SysWESM reference database file.
  • -ndays N — process N consecutive days from -t (default: 1).

Quick Reference Summary​

ToolAlways pass by handPassed to override the defaultAuto-loaded
Generator-t YYYYMMDD-ndays, -market, -bdir, -rtdoe, -rtdor, -srcdbOutput dir, RTDOE dir, RTDOR dir, SysWESM
AggregatorDate range and input directory-dest, -s, -metadata-db, -timeperiods-db, filtersAggregator output dir, SysWESM, time-periods
Editor (init, stamp-metadata, import-legacy)The specific file targeted-source-db, -submit-dir, -bid-dir, -marketSysWESM; for init also submit/bid directories
Editor (others)Specific input/output filesSub-verb-specific (--help)Nothing at the per-file level
Converter-indir, -outdir, and -all/filenames (old -in-dir/-out-dir accepted)-source-db, -market, -variantNothing — every path must be passed
ibd2ibdx (iPoolSuite.exe -ibd2ibdx)-indir, -outdir, and -all/-file NAME-overwrite, -marketNothing — every path must be passed

Troubleshooting Missing Paths​

If a tool refuses to run, the error message will list every place it checked (flag, env variable, CSV, GUI settings) and name the missing value. To fix it, provide the path via any of those five methods.

Deliberate Exceptions:

  • init, stamp-metadata, and import-legacy will print a warning but still generate the file (empty of reference data) if SysWESM is missing.
  • The Converter will refuse immediately without attempting any auto-load fallback.

App Settings​

The GUI displays six specific settings (like Bid output, RTDOE/RTDOR inputs, SysWESM) but saves them directly to Defaults.csv, not its internal settings.json. If a field looks blank in the app but the CLI still works, it means Defaults.csv successfully provided the path. Edit Defaults.csv to permanently change these core directories.


Exercise​

Test your CLI setup by running a simple generation task and verifying auto-loading works.

Step 1 of 3

Verify configuration defaults are in place

BidManager Desktop app settings are saved OR Defaults.csv exists at C:\IENERGY\Defaults.csv
DirBid, DirRTDOE, and DirRTDOR have valid paths assigned