mmdblookup --file /path/to/file.mmdb --ip 1.2.3.4 [path to lookup] This application accepts the following options: --file (-f) The path to the MMDB file. Required. --ip (-i) The IP address to look up. Required. --verbose (-v) Turns on verbose output. Specifically, this causes this application to output the database metadata. --version Print the program's version number and exit. --help (-h -?) Show usage information. If an IP's data entry resolves to a map or array, you can provide a lookup path to only show part of that data. For example, given a JSON structure like this: { "names": { "en": "Germany", "de": "Deutschland" }, "cities": [ "Berlin", "Frankfurt" ] } You could look up just the English name by calling mmdblookup with a lookup path of: mmdblookup --file ... --ip ... names en Or you could look up the second city in the list with: mmdblookup --file ... --ip ... cities 1 Array numbering begins with zero (0). If you do not provide a path to lookup, all of the information for a given IP will be shown.