mmdbio CLI - Release 1.1.0
Release Date: 2025-11-11
Version: 1.1.0
New Features
import command
- Import JSON file and generate
.mmdbdatabases. - Supports:
- IPv4 and IPv6
- Mixed IPv4/IPv6 JSON input
- IP ranges, single IPs, and CIDRs
- Flags:
--in, -i: Input JSON file path--out, -o: Output.mmdbfile path--ip: IP version (4 or 6), default is 6--size: Record size (24, 28, 32), default is 32--merge: Merge strategy (none,toplevel,recurse), default -> none--alias-6to4: Enable IPv6 to IPv4 aliasing for hybrid databases, default (false)--disallow-reserved: Skip reserved IP blocks, default (false)--title: Custom title for the.mmdbdatabase--description: Custom description for the.mmdbdatabase
Example Usage
# Import IPv4-only JSON
mmdbio import --in ipv4_export.json --out ipv4_data.mmdb --ip 4 --size 32
# Import IPv6-only JSON
mmdbio import --in ipv6_export.json --out ipv6_data.mmdb --ip 6
# Import mixed JSON (IPv4 + IPv6) with 6to4 aliasing
mmdbio import --in all_data.json --out all.mmdb --ip 6 --alias-6to4
# Import and skip reserved IP ranges
mmdbio import --in dataset.json --out filtered.mmdb --disallow-reserved