@@ -24,13 +24,13 @@ brew install ipinfo-cli
2424OR to install the latest ` amd64 ` version without automatic updates:
2525
2626``` bash
27- curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.1.1 /macos.sh | sh
27+ curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.2.0 /macos.sh | sh
2828```
2929
3030### Debian / Ubuntu (amd64)
3131
3232``` bash
33- curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.1.1 /deb.sh | sh
33+ curl -Ls https://github.com/ipinfo/cli/releases/download/ipinfo-2.2.0 /deb.sh | sh
3434```
3535
3636### FreeBSD
@@ -42,8 +42,8 @@ cd /usr/ports/net/ipinfo-cli && make install clean
4242OR
4343
4444``` bash
45- curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.1.1 /ipinfo_2.1.1 .deb
46- sudo dpkg -i ipinfo_2.1.1 .deb
45+ curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.2.0 /ipinfo_2.2.0 .deb
46+ sudo dpkg -i ipinfo_2.2.0 .deb
4747```
4848
4949### Using ` go get `
@@ -97,12 +97,12 @@ After choosing a platform `PLAT` from above, run:
9797
9898``` bash
9999# for Windows, use ".zip" instead of ".tar.gz"
100- curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.1.1 /ipinfo_2.1.1_ ${PLAT} .tar.gz
100+ curl -LO https://github.com/ipinfo/cli/releases/download/ipinfo-2.2.0 /ipinfo_2.2.0_ ${PLAT} .tar.gz
101101# OR
102- wget https://github.com/ipinfo/cli/releases/download/ipinfo-2.1.1 /ipinfo_2.1.1_ ${PLAT} .tar.gz
102+ wget https://github.com/ipinfo/cli/releases/download/ipinfo-2.2.0 /ipinfo_2.2.0_ ${PLAT} .tar.gz
103103
104- tar -xvf ipinfo_2.1.1_ ${PLAT} .tar.gz
105- mv ipinfo_2.1.1_ ${PLAT} /usr/local/bin/ipinfo
104+ tar -xvf ipinfo_2.2.0_ ${PLAT} .tar.gz
105+ mv ipinfo_2.2.0_ ${PLAT} /usr/local/bin/ipinfo
106106```
107107
108108### Using ` git `
@@ -148,9 +148,9 @@ Currently these subcommands are separately shipped:
148148
149149| CLI | Version |
150150| ---------- | ------- |
151- | grepip | [ 1.1 .0] ( https://github.com/ipinfo/cli/releases/tag/grepip-1.1 .0 ) |
152- | cidr2range | [ 1.1.1 ] ( https://github.com/ipinfo/cli/releases/tag/cidr2range-1.1.1 ) |
153- | range2cidr | [ 1.1 .0] ( https://github.com/ipinfo/cli/releases/tag/range2cidr-1.1 .0 ) |
151+ | grepip | [ 1.2 .0] ( https://github.com/ipinfo/cli/releases/tag/grepip-1.2 .0 ) |
152+ | cidr2range | [ 1.2.0 ] ( https://github.com/ipinfo/cli/releases/tag/cidr2range-1.2.0 ) |
153+ | range2cidr | [ 1.2 .0] ( https://github.com/ipinfo/cli/releases/tag/range2cidr-1.2 .0 ) |
154154
155155## Quick Start
156156
@@ -279,12 +279,29 @@ If you have an account, see our
279279
280280All examples in this document use a token with all data enabled.
281281
282- ## Disabling Color Output
282+ ## Color Output
283+
284+ ### Disabling Color Output
283285
284286All our CLIs respect either the ` --nocolor ` flag or the
285287[ ` NO_COLOR ` ] ( https://no-color.org/ ) environment variable to disable color
286288output.
287289
290+ ### Color on Windows
291+
292+ To enable color support for the Windows command prompt, run the following to
293+ enable [ ` Console Virtual Terminal Sequences ` ] ( https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences ) .
294+
295+ ``` cmd
296+ REG ADD HKCU\CONSOLE /f /v VirtualTerminalLevel /t REG_DWORD /d 1
297+ ```
298+
299+ You can disable this by running the following:
300+
301+ ``` cmd
302+ REG DELETE HKCU\CONSOLE /f /v VirtualTerminalLevel
303+ ```
304+
288305## Other IPinfo Tools
289306
290307There are official IPinfo client libraries available for many languages including PHP, Python, Go, Java, Ruby, and many popular frameworks such as Django, Rails and Laravel. There are also many third party libraries and integrations available for our API.
0 commit comments