Skip to content

Commit 994a564

Browse files
felixfbeckerStephen Gutekanst
authored andcommitted
Add Windows command line installation instructions
1 parent d806be8 commit 994a564

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,18 @@ chmod +x /usr/local/bin/src
3434

3535
Note: Windows support is still rough around the edges, but is available. If you encounter issues, please let us know by filing an issue :)
3636

37+
Run in PowerShell as administrator:
38+
```powershell
39+
New-Item -ItemType Directory 'C:\Program Files\Sourcegraph'
40+
Invoke-WebRequest https://github.com/sourcegraph/src-cli/releases/download/latest/src_windows_amd64.exe -OutFile 'C:\Program Files\Sourcegraph\src.exe'
41+
[Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path', [EnvironmentVariableTarget]::Machine) + ';C:\Program Files\Sourcegraph', [EnvironmentVariableTarget]::Machine)
42+
$env:Path += ';C:\Program Files\Sourcegraph'
43+
```
44+
45+
Or manually:
3746
- [Download the latest src_windows_amd64.exe](https://github.com/sourcegraph/src-cli/releases/download/latest/src_windows_amd64.exe) and rename to `src.exe`.
38-
- Place the file under e.g. `C:\Program Files\Sourcegraph\src.exe` and add that directory to your system path to access it from any command prompt.
47+
- Place the file under e.g. `C:\Program Files\Sourcegraph\src.exe`
48+
- Add that directory to your system path to access it from any command prompt
3949

4050
## Usage
4151

0 commit comments

Comments
 (0)