A simple command line utility to get the geolocation of an IP address written in the Crystal programming language.
Requires Crystal version 1.15 or higher installed on your system.
crystal run src/geoip-cli.cr -- [arguments] You can compile the program using directly the Crystal compiler, like this:
crystal build --release --no-debug -o ./bin/geoip-cli ./src/geoip-cli.crAlternatively, you can compile the program using make:
make
# If you want to make the command available system-wide, you can then run:
make installCompiled binary will be available in the bin directory.
./geoip-cli [arguments]
-i IP, --ip=IP Some IP address to fetch info for.
-v, --version Show version
-h, --help Show help