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
{{ message }}
Repository navigation
Commit 14e8548
Browse filesBrowse the repository at this point in the historyBrowse files
docs/readme: drop the Sourcegraph 3.12 note and refresh stale content
The README still pointed readers of Sourcegraph 3.12 or earlier at a
3.11.2-era README, listed a `src extensions` command that no longer
exists, and left out commands that have shipped since. Install examples
used 3.x versions and only offered amd64 downloads.
Remove the 3.12 note. Rebuild the subcommand list from `src help` so it
matches the binary: drop `extensions`, add `abc`, `codeowners`, `debug`,
`lsp`, `search-jobs`, and `snapshot`. Bump example versions to 8.1.2687 /
8.1, default the macOS download to `src_darwin_arm64` with an Intel
fallback, note the `src_linux_arm64` build, and use "macOS" consistently.
Amp-Thread-ID: https://ampcode.com/threads/T-01a1a3a9-87bc-743d-b475-c96ace107ed5
Co-authored-by: Amp <amp@ampcode.com>
Copy file name to clipboardExpand all lines: README.md
+38-31Lines changed: 38 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,21 @@
11
11
-**Manage & administrate** repositories, users, and more
12
12
-**Easily convert src-CLI commands to equivalent curl commands**, just add --get-curl!
13
13
14
-
**Note:** Using Sourcegraph 3.12 or earlier? [See the older README](https://github.com/sourcegraph/src-cli/tree/3.11.2).
15
-
16
14
## Installation
17
15
18
16
Binary downloads are available on the [releases tab](https://github.com/sourcegraph/src-cli/releases), and through Sourcegraph.com. _If the latest version does not work for you,_ consider using the version compatible with your Sourcegraph instance instead.
or, with npm/npx, if you know the specific version to target, for example 3.43.2:
90
+
or, with npm/npx, if you know the specific version to target, for example 8.1.2687:
89
91
90
92
```bash
91
-
npx @sourcegraph/src@3.43.2 version
93
+
npx @sourcegraph/src@8.1.2687 version
92
94
```
93
95
94
96
### Installation: Windows
@@ -97,7 +99,7 @@ See [Sourcegraph CLI for Windows](WINDOWS.md).
97
99
98
100
### Installation: Docker
99
101
100
-
`sourcegraph/src-cli` is published to Docker Hub. You can use the `latest` tag or a specific version such as `3.43`. To see all versions view [sourcegraph/src-cli tags](https://hub.docker.com/r/sourcegraph/src-cli/tags).
102
+
`sourcegraph/src-cli` is published to Docker Hub. You can use the `latest` tag or a specific version such as `8.1`. To see all versions view [sourcegraph/src-cli tags](https://hub.docker.com/r/sourcegraph/src-cli/tags).
101
103
102
104
```bash
103
105
docker run --rm=true sourcegraph/src-cli:latest search 'hello world'
For convenience, add this environment variable to your terminal profile or system environment variables. On Mac OS and Linux, the terminal profile is typically `~/.bash_profile` for Bash or `~/.zprofile` for Zsh. On Windows, you can add it through the *System Properties* window. See [these instructions](https://www.computerhope.com/issues/ch000549.htm) for details.
124
+
For convenience, add this environment variable to your terminal profile or system environment variables. On macOS and Linux, the terminal profile is typically `~/.bash_profile` for Bash or `~/.zprofile` for Zsh. On Windows, you can add it through the *System Properties* window. See [these instructions](https://www.computerhope.com/issues/ch000549.htm) for details.
123
125
124
126
If `SRC_ENDPOINT` is not set, `src` defaults to `https://sourcegraph.com`.
125
127
@@ -169,27 +171,32 @@ Is your Sourcegraph instance behind a custom auth proxy? See [auth proxy configu
169
171
170
172
`src` provides different subcommands to interact with different parts of Sourcegraph:
171
173
172
-
-`src login` - authenticate to a Sourcegraph instance with your user credentials
173
-
-`src auth` - print the active authentication token or authorization header
174
-
-`src search` - perform searches and get results in your terminal or as JSON
175
-
-`src api` - run Sourcegraph GraphQL API requests
176
-
-`src batch` - execute and manage [batch changes](https://sourcegraph.com/docs/batch_changes)
177
-
-`src repos` - manage repositories
178
-
-`src users` - manage users
179
-
-`src orgs` - manages organization
180
-
-`src config` - manage global, org, and user settings
-`src codeowners` - manage ingested code ownership data
187
+
-`src code-intel` - manage code intelligence data
188
+
-`src lsp` - run a Language Server Protocol server that proxies requests to Sourcegraph code intelligence
189
+
-`src serve-git` - serve your local git repositories over HTTP for Sourcegraph to pull
190
+
-`src debug` - gather and bundle debug data from a Sourcegraph deployment for troubleshooting
191
+
-`src snapshot` - manage snapshots of Sourcegraph instance databases (experimental)
192
+
-`src version` - display and compare the `src` version against the recommended version for your Sourcegraph instance
186
193
187
194
Run `src -h` and `src <subcommand> -h` for more detailed usage information.
188
195
You can also read the [usage docs for the latest version of `src-cli`](https://sourcegraph.com/docs/cli/references) online.
189
196
190
-
####Optional: Renaming `src`
197
+
### Optional: Renaming `src`
191
198
192
-
If you have a naming conflict with the `src` command, such as a Bash alias, you can rename the static binary. For example, on Linux / Mac OS:
199
+
If you have a naming conflict with the `src` command, such as a Bash alias, you can rename the static binary. For example, on Linux / macOS:
193
200
194
201
```sh
195
202
mv /usr/local/bin/src /usr/local/bin/src-cli
@@ -203,10 +210,10 @@ You can then invoke it via `src-cli`.
203
210
204
211
## Telemetry
205
212
206
-
`src` includes the operating system and architecture in the `User-Agent` header sent to Sourcegraph. For example, running `src` version 3.21.10 on an x86-64 Linux host will result in this header:
213
+
`src` includes the operating system and architecture in the `User-Agent` header sent to Sourcegraph. For example, running `src` version 8.1.2687 on an x86-64 Linux host will result in this header:
207
214
208
-
```
209
-
src-cli/3.21.10 linux amd64
215
+
```text
216
+
src-cli/8.1.2687 linux amd64
210
217
```
211
218
212
219
To disable this and _only_ send the version, you can set `-user-agent-telemetry=false` for a single command, or set the `SRC_DISABLE_USER_AGENT_TELEMETRY` environment variable to any non-blank string.
0 commit comments