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 - ipinfo-2.0.0

Published by UmanShahzad over 3 years ago

  • Two new subcommands, cidr2range & range2cidr, are available.

    They convert between CIDRs and IP ranges, e.g. 1.1.1.0/30 gives the range
    1.1.1.0-1.1.1.3 and vice versa.

    See ipinfo cidr2range --help and ipinfo range2cidr --help for details.

  • 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 ipinfo completion --help for more details.

  • All subcommands which accepted IPs/IP ranges/CIDRs/files as input can now
    accept all of these simultaneously.

    An example query showing what is now possible:

    # stdin: ../tmp/tmp2.txt
    # files: ../tmp/tmp3.txt
    # range 1: 1.1.1.1,1.1.1.4
    # range 2: 8.8.8.1-8.8.8.3 
    # ip: 123.123.123.123
    # cidr: 3.3.3.0/31
    cat ../tmp/tmp2.txt | ipinfo bulk 1.1.1.1,1.1.1.4 3.3.3.0/31 ../tmp/tmp3.txt 123.123.123.123 8.8.8.1-8.8.8.3
    

    The --help messages for each relevant subcommand gives details.

BREAKING CHANGE

IP ranges must now be specified using , or - as the delimiter, rather than
the space character . For example, 1.1.1.0-1.1.1.4 or 1.1.1.0,1.1.1.4
are allowed, but 1.1.1.0 1.1.1.4 is now interpreted as 2 separate IPs rather
than as a range like before.

cli - ipinfo-1.1.5

Published by UmanShahzad over 3 years ago

Support 32-bit AMD/Intel CPUs.

cli - grepip-1.0.3

Published by UmanShahzad over 3 years ago

Support 32-bit AMD/Intel CPUs.

cli - ipinfo-1.1.4

Published by UmanShahzad over 3 years ago

  • Return graceful error message when trying to do ASN lookup without a token. (The IPinfo ASN API requires a token).
cli - grepip-1.0.2

Published by UmanShahzad over 3 years ago

Fixes bug where last line ending without a newline character was ignored.

cli - ipinfo-1.1.3

Published by UmanShahzad over 3 years ago

Fixes bug in grepip subcommand where last line ending without a newline character was ignored.

cli - ipinfo-1.1.2

Published by UmanShahzad over 3 years ago

  • Fix crashes when using bulk endpoint without token; a token is required for bulk so exit gracefully.
cli - grepip-1.0.1

Published by UmanShahzad over 3 years ago

  • arm/arm64 support for all OSs that Golang supports it for.
  • Allowed disabling colors via --nocolor flag or NO_COLOR environment variable.
cli - ipinfo-1.1.1

Published by UmanShahzad over 3 years ago

  • arm/arm64 support for all OSs that Golang supports it for.
  • Allowed disabling colors via --nocolor flag or NO_COLOR environment variable.
cli - ipinfo-1.1.0

Published by UmanShahzad over 3 years ago

cli - ipinfo-1.0.0

Published by UmanShahzad over 3 years ago

cli - grepip-1.0.0

Published by UmanShahzad over 3 years ago