mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
43 lines
961 B
Plaintext
43 lines
961 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ipinfo
|
|
|
|
> Official CLI for the IPinfo.io IP geolocation and network intelligence API.
|
|
> Note: Some commands will require a token from IPinfo.io.
|
|
> More information: <https://github.com/ipinfo/cli#quick-start>.
|
|
|
|
- Display details for your current IP address:
|
|
|
|
`ipinfo myip`
|
|
|
|
- Display details for a specific IP address:
|
|
|
|
`ipinfo {{ip_address}}`
|
|
|
|
- Display details for multiple IP addresses in bulk from a file:
|
|
|
|
`ipinfo bulk {{path/to/ips.txt}}`
|
|
|
|
- Display details for a CIDR or IP range:
|
|
|
|
`ipinfo bulk {{cidr_range}}`
|
|
|
|
- Display only specific fields from IP lookup results:
|
|
|
|
`ipinfo {{ip_address}} {{[-f|--field]}} {{hostname,country,org}}`
|
|
|
|
- Summarize details for a group of IP addresses:
|
|
|
|
`ipinfo summarize {{path/to/ips.txt}}`
|
|
|
|
- Extract IP addresses from text and highlight them:
|
|
|
|
`ipinfo grepip {{path/to/file.txt}}`
|
|
|
|
- Display help:
|
|
|
|
`ipinfo {{[-h|--help]}}`
|