| Crates.io | bmo-to-md |
| lib.rs | bmo-to-md |
| version | 0.1.0 |
| created_at | 2025-07-29 07:27:56.880745+00 |
| updated_at | 2025-07-29 07:27:56.880745+00 |
| description | Dump a bugzilla bug to markdown, with attachments unziped |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1772016 |
| size | 101,390 |
A command-line tool to fetch bug information from Bugzilla and output as Markdown. Written by and for Claude Code.
cargo install bmo-to-md
cargo install --path .
To access private bugs or avoid rate limits, you can provide your Bugzilla API key through multiple methods:
export BMO_API_KEY="your-api-key-here"
Create ~/.config/bmo-to-md/config.toml:
api_key = "your-api-key-here"
Create a .bmo-api-key file in the project directory:
echo "your-api-key-here" > .bmo-api-key
Priority: Environment variable > Config file > Local file
The tool will automatically use the API key from the first available source.
Fetch a bug by number (defaults to Mozilla's Bugzilla):
bmo-to-md 1234567
Fetch a bug using a full URL:
bmo-to-md "https://bugzilla.mozilla.org/show_bug.cgi?id=1234567"
Use a different Bugzilla instance:
bmo-to-md --instance https://bugs.webkit.org 123456
Save markdown to a structured directory with attachments:
bmo-to-md -o /tmp -a 1838735
This creates /tmp/bmo-1838735/bmo-1838735-summary.md and downloads all
attachments to the same directory.
Command Line Flags:
-o, --output-dir: Specify output directory-a, --download-attachments: Download attachments with progress barsEnvironment Variables:
export BMO_OUTPUT_DIR=/path/to/output
export BMO_API_KEY=your-api-key-here
bmo-to-md -a 1838735
Config File:
Create ~/.config/bmo-to-md/config.toml:
output_dir = "/path/to/output"
api_key = "your-api-key-here"
Priority: Command line > Environment variable > Config file > Default (/tmp)
The tool outputs a Markdown summary including:
When using -a/--download-attachments:
.gz, .tar.gz, .tgz, .zip, .zst, and .zstd filesApache 2 or MIT