Skip to content

Commit 8120a35

Browse files
author
Stephen Gutekanst
authored
README: add installation section
1 parent d811aad commit 8120a35

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,27 @@ Currently, the `src` CLI only provides access to Sourcegraph's GraphQL API. It l
1616

1717
## Installation
1818

19-
WIP
19+
### Mac OS:
20+
21+
```bash
22+
curl https://github.com/sourcegraph/src-cli/releases/download/latest/src_darwin_amd64 -o /usr/local/bin/src
23+
chmod +x /usr/local/bin/src
24+
```
25+
26+
### Linux:
27+
28+
```bash
29+
curl https://github.com/sourcegraph/src-cli/releases/download/latest/src_linux_amd64 -o /usr/local/bin/src
30+
chmod +x /usr/local/bin/src
31+
```
32+
33+
### Windows:
34+
35+
- [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`.
36+
- To run from any command prompt, create the folder `C:\Program Files\Sourcegraph` and copy the binary into it. Add that directory to your system path:
37+
- Click the start menu, search for `environment` and select `Edit the system environment variables`.
38+
- (Windows 10) Click the `Add` button, paste `C:\Program Files\Sourcegraph` and click `Ok`.
39+
- (Windows 7) Click `Environment variables...`, select `Path`, click `Edit`, add `;C:\Program Files\Sourcegraph` to the end of the input.
2040

2141
## Usage
2242

0 commit comments

Comments
 (0)