Skip to content

IP Commands

Léo Peyronnet edited this page Jan 4, 2025 · 3 revisions

The ip command retrieves information about your public IP address.

Usage

itcli ip [options]
itcli ip [command] [...]

Options

  • -h or --help: Shows help text.

Commands

config

Retrieves information about your IP configuration.

locate

Retrieves information about an IP address and its position.


You can run itcli ip [command] --help to show help on a specific command.

Example

To get information about your public IP address:

itcli ip

IP Config

The ip config command retrieves information about your IP configuration.

Usage

itcli ip config [options]

Options

  • -h or --help: Shows help text.

Example

To get information about your IP configuration:

itcli ip config

IP Locate Command

The ip locate command retrieves information about an IP address and its position.

Usage

itcli ip locate <ip> [options]

Parameters

  • ip: The IP address to locate.

Options

  • -m or --map: Only shows the link to see the approximate location on a map. Default: False.
  • -p or --provider: Shows help text. The map provider to use.
  • -z or --zoom: The zoom level of the map. Default: "12".
  • -h or --help: Shows help text.

Map providers

  • Google
  • Here
  • Microsoft
  • OpenStreetMap (default)
  • Yandex

Examples

Basic Usage

To locate an IP address:

itcli ip locate 8.8.8.8

Show Map Link

To get only the link to the approximate location on a map:

itcli ip locate 8.8.8.8 --map

Use custom provider

To use a custom map provider:

itcli ip locate 8.8.8.8 -m -p Google

Change Zoom Level

To change the zoom level of the map:

itcli ip locate 8.8.8.8 -z 15

Customized map URL output

You can then customize the generated link to the map by changing the provider and zoom level:

itcli ip locate 8.8.8.8 -m -p Google -z 15