File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This program requires an API key to function. You may sign up for a free API key
1010Installation
1111============
1212
13- #### Go Installation
13+ #### ` go install ` Installation
1414
1515``` bash
1616go install github.com/ip2location/ip2location-io-cli/ip2locationio@latest
@@ -30,19 +30,71 @@ $GOPATH/bin/ip2locationio
3030#### Debian/Ubuntu (amd64)
3131
3232``` bash
33- curl -LO https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.1 /ip2location-io-1.0.1 .deb
34- sudo dpkg -i ip2location-io-1.0.1 .deb
33+ curl -LO https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2 /ip2location-io-1.0.2 .deb
34+ sudo dpkg -i ip2location-io-1.0.2 .deb
3535```
3636
37- #### Ubuntu
3837
39- ```
38+ #### Ubuntu PPA
39+
40+ ``` bash
4041sudo add-apt-repository ppa:ip2location/ip2locationio
4142sudo apt update
4243sudo apt install ip2location-io
4344```
4445
4546
47+ ### Windows Powershell
48+
49+ Launch Powershell as administrator then run the below:
50+
51+ ``` bash
52+ iwr -useb https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/windows.ps1 | iex
53+ ```
54+
55+
56+ ### Download pre-built binaries
57+
58+ Supported OS/architectures below:
59+
60+ ```
61+ darwin_amd64
62+ darwin_arm64
63+ dragonfly_amd64
64+ freebsd_386
65+ freebsd_amd64
66+ freebsd_arm
67+ freebsd_arm64
68+ linux_386
69+ linux_amd64
70+ linux_arm
71+ linux_arm64
72+ netbsd_386
73+ netbsd_amd64
74+ netbsd_arm
75+ netbsd_arm64
76+ openbsd_386
77+ openbsd_amd64
78+ openbsd_arm
79+ openbsd_arm64
80+ solaris_amd64
81+ windows_386
82+ windows_amd64
83+ windows_arm
84+ ```
85+
86+ After choosing a platform ` PLAT ` from above, run:
87+
88+ ``` bash
89+ # for Windows, use ".zip" instead of ".tar.gz"
90+ curl -LO https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/ip2locationio_1.0.2_${PLAT} .tar.gz
91+ # OR
92+ wget https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/ip2locationio_1.0.2_${PLAT} .tar.gz
93+
94+ tar -xvf ip2locationio_1.0.2_${PLAT} .tar.gz
95+ mv ip2locationio_1.0.2_${PLAT} /usr/local/bin/ip2locationio
96+ ```
97+
4698
4799Usage Examples
48100==============
You can’t perform that action at this time.
0 commit comments