11# OpenAnalyst CLI Installer — Windows PowerShell
2- # Usage: irm https://raw.githubusercontent.com/OpenAnalystInc/cli/main/install.ps1 | iex
2+ # Usage: irm https://raw.githubusercontent.com/OpenAnalystInc/openanalyst- cli/main/install.ps1 | iex
33
44$ErrorActionPreference = " Continue"
55$ProgressPreference = " SilentlyContinue"
66try { [Console ]::OutputEncoding = [System.Text.Encoding ]::UTF8 } catch {}
77
8- $Repo = " OpenAnalystInc/cli"
8+ $Repo = " OpenAnalystInc/openanalyst- cli"
99$BinaryName = " openanalyst.exe"
1010$InstallDir = " $env: USERPROFILE \.openanalyst\bin"
1111$ConfigDir = " $env: USERPROFILE \.openanalyst"
1212
1313# ── Helpers ──
14- function Rp ([string ]$c , [int ]$n ) { if ($n -le 0 ) { return " " }; return ($c * $n ) }
14+ function Repeat ([string ]$c , [int ]$n ) { if ($n -le 0 ) { return " " }; return ($c * $n ) }
1515function Pad ([int ]$n ) { if ($n -le 0 ) { return " " }; return (" " * $n ) }
1616function W ([string ]$t ) { Write-Host $t - NoNewline - ForegroundColor White }
1717function Dim ([string ]$t ) { Write-Host $t - NoNewline - ForegroundColor DarkGray }
@@ -55,18 +55,18 @@ Dim " v$Version"
5555Nl
5656Dim " The Universal AI Agent for Your Terminal"
5757Nl; Nl
58- Dim " $ ( Rp $H 44 ) " ; Nl; Nl
58+ Dim " $ ( Repeat $H 44 ) " ; Nl; Nl
5959
6060# ── System info ──
6161$OsLabel = " Windows"
6262$ArchLabel = if ([Environment ]::Is64BitOperatingSystem) { " x64" } else { " x86" }
6363$BoxW = 42
6464
65- Dim " $TL $ ( Rp $H $BoxW ) $TR " ; Nl
65+ Dim " $TL $ ( Repeat $H $BoxW ) $TR " ; Nl
6666Dim " $VL " ; W " System " ; Dim " $OsLabel $ArchLabel " ; Dim (Pad ($BoxW - 15 - " $OsLabel $ArchLabel " .Length)); Dim $VL ; Nl
6767Dim " $VL " ; W " Install to " ; Dim " ~\.openanalyst\bin" ; Dim (Pad ($BoxW - 15 - 18 )); Dim $VL ; Nl
6868Dim " $VL " ; W " Config at " ; Dim " ~\.openanalyst" ; Dim (Pad ($BoxW - 15 - 14 )); Dim $VL ; Nl
69- Dim " $BL $ ( Rp $H $BoxW ) $BR " ; Nl
69+ Dim " $BL $ ( Repeat $H $BoxW ) $BR " ; Nl
7070Nl
7171
7272# ── Setup ──
@@ -133,21 +133,21 @@ if (-not (Test-Path $EnvFile)) {
133133
134134# ── Summary ──
135135Nl; Nl
136- Dim " $ ( Rp $H 44 ) " ; Nl; Nl
136+ Dim " $ ( Repeat $H 44 ) " ; Nl; Nl
137137Write-Host " $ ( [char ]0x2713 ) Installation complete" - ForegroundColor Green
138138Nl; Nl
139139
140140$BinPath = " ~\.openanalyst\bin\openanalyst"
141141$CfgPath = " ~\.openanalyst\.env"
142142$VerStr = " v$Version "
143143
144- Dim " $TL $ ( Rp $H $BoxW ) $TR " ; Nl
144+ Dim " $TL $ ( Repeat $H $BoxW ) $TR " ; Nl
145145Dim " $VL $ ( Pad $BoxW ) $VL " ; Nl
146146Dim " $VL " ; W " Binary " ; Dim $BinPath ; Dim (Pad ($BoxW - 13 - $BinPath.Length )); Dim $VL ; Nl
147147Dim " $VL " ; W " Config " ; Dim $CfgPath ; Dim (Pad ($BoxW - 13 - $CfgPath.Length )); Dim $VL ; Nl
148148Dim " $VL " ; W " Version " ; Dim $VerStr ; Dim (Pad ($BoxW - 13 - $VerStr.Length )); Dim $VL ; Nl
149149Dim " $VL $ ( Pad $BoxW ) $VL " ; Nl
150- Dim " $BL $ ( Rp $H $BoxW ) $BR " ; Nl
150+ Dim " $BL $ ( Repeat $H $BoxW ) $BR " ; Nl
151151Nl
152152
153153# ── Next steps ──
@@ -167,7 +167,7 @@ Acc " `$ openanalyst"; Nl
167167Nl; Nl
168168
169169# ── Provider list ──
170- Dim " $TL $ ( Rp $H $BoxW ) $TR " ; Nl
170+ Dim " $TL $ ( Repeat $H $BoxW ) $TR " ; Nl
171171Dim " $VL $ ( Pad $BoxW ) $VL " ; Nl
172172Dim " $VL " ; W " 7 LLM Providers. One Interface." ; Dim (Pad ($BoxW - 34 )); Dim $VL ; Nl
173173Dim " $VL $ ( Pad $BoxW ) $VL " ; Nl
@@ -197,12 +197,12 @@ foreach ($p in $providers) {
197197 Dim $VL ; Nl
198198}
199199Dim " $VL $ ( Pad $BoxW ) $VL " ; Nl
200- Dim " $BL $ ( Rp $H $BoxW ) $BR " ; Nl
200+ Dim " $BL $ ( Repeat $H $BoxW ) $BR " ; Nl
201201Nl
202202
203203Dim " Documentation: "
204- Acc " github.com/OpenAnalystInc/cli"
204+ Acc " github.com/OpenAnalystInc/openanalyst- cli"
205205Nl
206206Dim " Support: "
207- Acc " anit @openanalyst.com"
207+ Acc " support @openanalyst.com"
208208Nl; Nl
0 commit comments