cli

Official Command Line Interface for the IPinfo API (IP geolocation and other types of IP data)

APACHE-2.0 License

Stars
1.7K
Committers
26

Bot releases are hidden (Show)

cli - grepip-1.2.1

Published by UmanShahzad almost 3 years ago

Fixes an issue with IPv6 parsing where IPv6 addresses with compression in the
middle was not properly recognizing the full remaining string at the right side
of the compression.

cli - ipinfo-2.4.0

Published by UmanShahzad almost 3 years ago

A cidr2ip subcommand is added which converts CIDRs to individual IPs within
those CIDRs.

The command also exists as a standalone binary.

cidr2ip accepts inputs the same way our other commands do, via stdin, args,
files, etc.

cli - cidr2ip-1.0.0

Published by UmanShahzad almost 3 years ago

cidr2ip converts CIDRs to individual IPs within those CIDRs.

The command exists as a standalone binary in addition to as a subcommand on the
main ipinfo command.

cidr2ip accepts inputs the same way our other commands do, via stdin, args,
files, etc.

cli - ipinfo-2.3.1

Published by UmanShahzad almost 3 years ago

Added the new relay and service fields from the API into the CLI.

Also updated the summarize subcommand to include summarized relay counts and
top privacy services.

cli - ipinfo-2.3.0

Published by UmanShahzad almost 3 years ago

A range2ip subcommand is added which converts IP ranges to individual IPs
within those ranges.

The command also exists as a standalone binary.

range2ip accepts inputs the same way our other commands do, via stdin, args,
files, etc.

cli - range2ip-1.0.0

Published by UmanShahzad almost 3 years ago

range2ip converts IP ranges to individual IPs within those ranges.

The command exists as a standalone binary in addition to as a subcommand on the
main ipinfo command.

range2ip accepts inputs the same way our other commands do, via stdin, args,
files, etc.

cli - ipinfo-2.2.0

Published by UmanShahzad almost 3 years ago

  • ipinfo now supports file-based caching by default. All requests will be
    cached for 24 hours, and the maximum cache file size will be 1GB before
    pruning automatically occurs.
    • You may disable the cache with --nocache on any command that would
      otherwise use it.
    • You can manually clear the cache with ipinfo cache clear.
    • We will add more capabilities and configuration to the cache in future
      releases.
  • ipinfo <domain> is now allowed, e.g. ipinfo google.com, which will lookup
    the IP address found at google.com.
  • ipinfo's field selection flag -f/--field can now accept multiple fields
    separated by commas, including repeatedly, e.g.
    ipinfo 1.1.1.1 -f ip,asn,privacy,company.type.
  • ipinfo prips now allows piping in input the same exact way as ipinfo bulk
    and other commands that take IP inputs.
  • When inputting files via stdin or arguments for commands like ipinfo bulk,
    ipinfo map, etc., the files may now also contain CIDRs & IP ranges which
    will be converted into individual IPs.
  • ipinfo login now also accepts the token as the first argument, e.g.
    ipinfo login <token>.
  • ipinfo login now checks if the token you're logging in with is actually
    valid, by checking via an IPinfo API endpoint.
  • When login is required for some features, error messages shown when logged
    out now indicate that login is required.
  • Fix a bug in ipinfo summarize where percentage calculations were off when
    the total IP count did not match the unique IP count.
  • Fix a bug in grepip where -o doesn't properly handle outputting lines
    where more than 2 IPs were on the same line being parsed.
  • Fix a bug in grepip where it could crash due to a too-lenient IPv4 parser.
  • When cidr2range accepts a file, it now also looks to see if there is a
    header in CSV form, and if so changes the first column to range, just as it
    changes the first non-header columns from CIDRs to IP ranges.
  • When range2cidr accepts a file, it now also looks to see if there is a
    header in CSV form, and if so changes the first column to cidr, just as it
    changes the first non-header columns from IP ranges to CIDRs. NOTE: this
    will work even if the IP range takes up 2 columns as in start_ip,end_ip,
    in which case both columns are replaced by a single column cidr.
  • Support for plan9 builds will be removed in future releases for the
    separate commands cidr2range, range2cidr and grepip, and will be
    dropped right now for ipinfo. Please see the following issue for details:
    https://github.com/etcd-io/bbolt/issues/231
cli - grepip-1.2.0

Published by UmanShahzad almost 3 years ago

  • Fix a bug in grepip where -o doesn't properly handle outputting lines
    where more than 2 IPs were on the same line being parsed.
  • Fix a bug in grepip where it could crash due to a too-lenient IPv4 parser.
cli - range2cidr-1.2.0

Published by UmanShahzad almost 3 years ago

  • When range2cidr accepts a file, it now also looks to see if there is a
    header in CSV form, and if so changes the first column to cidr, just as it
    changes the first non-header columns from IP ranges to CIDRs. NOTE: this
    will work even if the IP range takes up 2 columns as in start_ip,end_ip,
    in which case both columns are replaced by a single column cidr.
cli - cidr2range-1.2.0

Published by UmanShahzad almost 3 years ago

  • When cidr2range accepts a file, it now also looks to see if there is a
    header in CSV form, and if so changes the first column to range, just as it
    changes the first non-header columns from CIDRs to IP ranges.
cli - ipinfo-2.1.1

Published by UmanShahzad about 3 years ago

Fixed ipinfo cidr2range so it supports IPv6 on the argument line as well, and
not just in files.

cli - cidr2range-1.1.1

Published by UmanShahzad about 3 years ago

Fixed cidr2range so it supports IPv6 on the argument line as well, and not
just in files.

cli - ipinfo-2.1.0

Published by UmanShahzad about 3 years ago

ipinfo cidr2range and ipinfo range2cidr now support IPv6 ranges & CIDRs for
conversion.

cli - range2cidr-1.1.0

Published by UmanShahzad about 3 years ago

range2cidr now supports IPv6 ranges for conversion into CIDRs.

cli - cidr2range-1.1.0

Published by UmanShahzad about 3 years ago

cidr2range now supports IPv6 CIDRs for conversion into ranges.

cli - ipinfo-2.0.2

Published by UmanShahzad about 3 years ago

  • -v or --version can now also be used to print the version
    for the ipinfo command.
  • The 5 top domains associated with a group of IPs in the IP Summary
    response will also be displayed.
  • The IP Summary feature will no longer be limited to 1k IPs starting tomorrow.
cli - ipinfo-2.0.1

Published by UmanShahzad over 3 years ago

Fixes subcommand completion not showing in ipinfo --help message.

cli - range2cidr-1.0.0

Published by UmanShahzad over 3 years ago

range2cidr is a utility for converting from IP ranges to CIDRs. For example,
1.1.1.0-1.1.1.3 or 1.1.1.0,1.1.1.3 gives 1.1.1.0/30.

Files containing IP ranges can also be passed in via stdin and/or arguments.

See range2cidr --help for details.

cli - cidr2range-1.0.0

Published by UmanShahzad over 3 years ago

cidr2range is a utility for converting from CIDRs to IP ranges. For example,
1.1.1.0/30 gives 1.1.1.0-1.1.1.3.

Files containing CIDRs can also be passed in via stdin and/or arguments.

See cidr2range --help for details.

cli - grepip-1.1.0

Published by UmanShahzad over 3 years ago

Shell auto-completion is now supported for at least bash, zsh and fish.

Other shells may also be supported if those shells support auto-completion via
using the COMP_LINE environment variable.

Type grepip --help for the list of options available for installation.