Skip to content

v1.1.0 – Introducing the Import Command

Latest

Choose a tag to compare

@mateen993 mateen993 released this 11 Nov 09:36
· 14 commits to main since this release
fd911cc

mmdbio CLI - Release 1.1.0

Release Date: 2025-11-11
Version: 1.1.0


New Features

import command

  • Import JSON file and generate .mmdb databases.
  • 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 .mmdb file 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 .mmdb database
    • --description : Custom description for the .mmdb database

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