A MaxMind license key is required to authenticate every download request thatDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/msimerson/maxmind-geolite-mirror/llms.txt
Use this file to discover all available pages before exploring further.
maxmind-geolite-mirror makes to download.maxmind.com. Without a valid key the tool cannot reach the MaxMind API, and it will exit immediately with an error. You can supply the key in one of two ways: as an environment variable (recommended) or by editing lib/config.js directly.
Setting the license key
- Environment Variable
- Config File
Export To make the variable available in every new shell session, add the Then reload the profile:The environment variable approach is recommended because it keeps credentials out of source-controlled files.
MAXMIND_LICENSE_KEY before running the mirror command:export line to your shell profile:How the two methods interact
lib/config.js contains the following logic:
exports.license_key is still an empty string. This means:
- If
MAXMIND_LICENSE_KEYis set andconfig.jshas''(the default), the environment variable wins. - If
config.jshas a non-empty string, that value is used regardless of the environment variable.
Verifying the key
Run the tool and watch for download output:<path> is up-to-date. An authentication failure or missing key produces an error message and a non-zero exit code.
Free GeoLite2 license keys are available at maxmind.com/en/geolite2/signup. A MaxMind account is required, but there is no cost for GeoLite2 access.