ipify-cli

Crates.ioipify-cli
lib.rsipify-cli
version0.1.0
sourcesrc
created_at2020-05-15 09:38:33.976902
updated_at2020-05-15 09:38:33.976902
descriptiona CLI command to check public IP
homepage
repositoryhttps://github.com/dvvvvvv/ipify-cli
max_upload_size
id241806
size26,079
(dvvvvvv)

documentation

README

ipify-cli

ipify-cli is a CLI command to know the public IP of the machine by using ipify API.

Installation

From Source Code

Prerequisites

git , cargo , sudo

Installation Procedure

git clone https://github.com/dvvvvvv/ipify-cli.git
cd ipify-cli
cargo build --release
sudo cp target/release/ipify-cli /usr/bin

Usage

ipify-cli

USAGE:
    ipify-cli [OPTIONS]

FLAGS:
    -h, --help    Prints help information

OPTIONS:
    -v, --version <ip-version>    specify ip version [default: 4]  [possible values: 4, 6]

EXAMPLE

# ipify-cli
98.207.254.136
# ipify-cli -v 4
98.207.254.136
# ipify-cli -v 6
2a00:1450:400f:80d::200e
Commit count: 19

cargo fmt