kicad-cli bom export fields missing

If I want to create BOM using kicad-cli, the quantity field is missing from the output.

kicad-cli sch export bom --group-by "id" --exclude-dnp --fields "id,Reference,Value,Footprint,${QUANTITY}" --labels "id,Refs,Value,Footprint,Qty" hid_main.kicad_sch

This is also existed in v9.0.6

I get this:

"id","Refs","Value","Footprint" "468","C101,C102","12p","Capacitor_SMD:C_0603_1608Metric" "145","C103-C105,C109-C118,C301,C406,C408-C410,C501-C505,C510,C701","100n","Capacitor_SMD:C_0603_1608Metric" "608","C106,C107,C603","10n","Capacitor_SMD:C_0603_1608Metric" "555","C108","10u","Capacitor_SMD:C_1206_3216Metric" "29","C402","100n","Capacitor_SMD:C_1206_3216Metric" "143","C403","470p","Capacitor_SMD:C_0603_1608Metric" [...]

I'd expect that the quantity of each group is added to the fields.

Steps to reproduce

  1. Execute the supplied command line
  2. See the generated CSV

KiCad Version

Application: KiCad x86_64 on x86_64 Version: 9.0.7-rc2, release build Libraries: wxWidgets 3.2.8 FreeType 2.13.3 HarfBuzz 10.2.0 FontConfig 2.15.0 libcurl/8.14.1 OpenSSL/3.5.4 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.2 libssh2/1.11.1 nghttp2/1.64.0 nghttp3/1.8.0 librtmp/2.3 OpenLDAP/2.6.10 Platform: Debian GNU/Linux 13 (trixie), 64 bit, Little endian, wxGTK, X11, xfce, x11 Build Info: Date: Dec 31 2025 13:56:37 wxWidgets: 3.2.8 (wchar_t,wx containers) GTK+ 3.24 Boost: 1.83.0 OCC: 7.8.1 Curl: 8.14.1 ngspice: 44.2 Compiler: GCC 14.2.0 with C++ ABI 1019 KICAD_IPC_API=ON Locale: Lang: en_US Enc: UTF-8 Num: 1,234.5 Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)