Skip to content

sindresorhus/ipify-cli

Repository files navigation

ipify-cli

Get your public IP address

Using the ipify API or a custom ipify instance.

Install

npm install --global ipify-cli

Usage

$ ipify --help

  Usage
    $ ipify

  Options
    --endpoint  Custom API endpoint

  Examples
    $ ipify
    2001:0db8:85a3:0000:0000:8a2e:0370:7334
    $ ipify --endpoint=https://ipify.mycompany.com
    2001:0db8:85a3:0000:0000:8a2e:0370:7334

Related

  • ipify - API for this module