Crates.io | ipify-cli |
lib.rs | ipify-cli |
version | 0.1.0 |
source | src |
created_at | 2020-05-15 09:38:33.976902 |
updated_at | 2020-05-15 09:38:33.976902 |
description | a CLI command to check public IP |
homepage | |
repository | https://github.com/dvvvvvv/ipify-cli |
max_upload_size | |
id | 241806 |
size | 26,079 |
ipify-cli is a CLI command to know the public IP of the machine by using ipify API.
git clone https://github.com/dvvvvvv/ipify-cli.git
cd ipify-cli
cargo build --release
sudo cp target/release/ipify-cli /usr/bin
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]
# ipify-cli
98.207.254.136
# ipify-cli -v 4
98.207.254.136
# ipify-cli -v 6
2a00:1450:400f:80d::200e