https://github.com/ryanj93/geoip-cli
A simple command line utility to get the geolocation of an IP address.
https://github.com/ryanj93/geoip-cli
cli crystal-lang geolocation
Last synced: 8 days ago
JSON representation
A simple command line utility to get the geolocation of an IP address.
- Host: GitHub
- URL: https://github.com/ryanj93/geoip-cli
- Owner: RyanJ93
- License: mit
- Created: 2025-03-13T23:51:45.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-03-13T23:59:43.000Z (10 months ago)
- Last Synced: 2025-03-14T00:32:57.642Z (10 months ago)
- Topics: cli, crystal-lang, geolocation
- Language: Crystal
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geoip-cli
A simple command line utility to get the geolocation of an IP address written in the Crystal programming language.

### Prerequisites
Requires Crystal version 1.15 or higher installed on your system.
### Running the program
````bash
crystal run src/geoip-cli.cr -- [arguments]
````
### Compiling
You can compile the program using directly the Crystal compiler, like this:
````bash
crystal build --release --no-debug -o ./bin/geoip-cli ./src/geoip-cli.cr
````
Alternatively, you can compile the program using make:
````bash
make
# If you want to make the command available system-wide, you can then run:
make install
````
Compiled binary will be available in the bin directory.
### Usage
````bash
./geoip-cli [arguments]
-i IP, --ip=IP Some IP address to fetch info for.
-v, --version Show version
-h, --help Show help
````