snippetbashTip
ipinfo — Official CLI for the IPinfo.io IP geolocation and network intelligence API. Note: Some commands will
Viewed 0 times
officialthecommandipinfoclifor
Problem
How to use the
ipinfo command: 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>.Solution
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 myipDisplay 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]}}Code Snippets
Display details for your current IP address
ipinfo myipDisplay 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}}Context
tldr-pages: common/ipinfo
Revisions (0)
No revisions yet.