ip-api-cli


An ergonomic CLI wrapper for the IP-API service which detects location of an either IP address or a domain name, supporting such features as different languages, a callback function (JSONP), explicit specification of returned items and more.

Pulse · Stargazers · Releases · Contributing


Installation

From package registry

This command will download the source code from the https://crates.io package registry and compile ip-api-cli right for your platform, using our lovely Cargo:

bash $ cargo install ip-api-cli

As a repository

If you want to become a contributor, then you need to manually clone this repository and compile the whole project using Cargo, for future development.

bash $ git clone https://github.com/Gymmasssorla/ip-api-cli.git $ cd ip-api-cli $ cargo build --release

Pre-compiled binaries

The easiest way to run ip-api-cli on your system is to download the pre-compiled binaries from the existing releases, which doesn't require any external software (unlike the two previous approaches).


Options

``` ip-api-cli 0.1.0 Temirkhan Myrzamadi gymmasssorla@gmail.com A command-line interface to http://ip-api.com/, written in Rust.

USAGE: iac [OPTIONS]

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -a, --address

An IP address or a domain name which will be requested to the service. By default, it'll send your local IP [default: ] -c, --callback By default there is no callback function called, but you can supply your own with this option -f, --fields A comma-separated names or a generated number specifying which items must be returned.

        For the explicit items documentation and the number generator, visit
        <http://ip-api.com/docs/api:json>. [default: 61439]
-l, --language <LANGUAGE>
        A language name to localize such things as city, region name, and
        country [default: en]  [possible values: en, de, es, pt-BR, fr, ja,
        zh-CN, ru]

For more information see https://github.com/Gymmasssorla/ip-api-cli. ```


Contributing

You are always welcome for any contribution to this project! But before you start, you should read the appropriate document to know about the preferred development process and the basic communication rules.


Contacts

Temirkhan Myrzamadi <gymmasssorla@gmail.com> (the author)