Install the lightweight CLI to query endpoints quickly:
curl -fsSL https://whoami.run/install | bash
Default command name is whoami-ip
. You can choose another name via ?cmd=<name>
.
whoami-ip [command] [--no-color]
(no arg)
: Show formatted connection detailsip
: Show public IP (v4 or v6)ipv4
| v4
: Show IPv4ipv6
| v6
: Show IPv6json
: Show all details in JSONhostname
: Show reverse DNS hostnamecountry
: Show detected country (CF header)--no-color
: Disable ANSI colors for the default viewrename <new-name>
: Install the CLI under a new nameupdate
: Update CLI to the latest versionversion
| -v
: Show client/server version statusuninstall
: Remove the installed CLI from PATHwhoami-ip
whoami-ip ip
whoami-ip ipv6
whoami-ip json
whoami-ip rename GetMyPubIP
Remove the installed CLI command. Use the name you installed (default is whoami-ip
):
whoami-ip uninstall
~/.bashrc
or ~/.zshrc
are not removed automatically.Installed path by default: ~/.local/bin/<name>
. If you chose a custom name, run <name> uninstall
.