You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[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`.
47
49
- Place the file under e.g. `C:\Program Files\Sourcegraph\src.exe`
48
50
- Add that directory to your system path to access it from any command prompt
@@ -51,6 +53,22 @@ Or manually:
51
53
52
54
Consult `src -h` and `src api -h` for usage information.
53
55
56
+
## Authentication
57
+
58
+
Some Sourcegraph instances will be configured to require authentication. You can do so via the environment:
59
+
60
+
```sh
61
+
SRC_ACCESS_TOKEN="secret" src ...
62
+
```
63
+
64
+
Or via the configuration file (`~/src-config.json`):
65
+
66
+
```sh
67
+
{"accessToken": "secret"}
68
+
```
69
+
70
+
See `src -h` for more information.
71
+
54
72
## Development
55
73
56
74
If you want to develop the CLI, you can install it with `go get`:
0 commit comments