Skip to content

Commit 1979055

Browse files
Update src-cli instructions.
1 parent 7b454f6 commit 1979055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ npm install -g @sourcegraph/lsif-typescript
4949
npm install # or yarn install
5050
lsif-typescript index
5151
# From https://github.com/sourcegraph/src-cli/
52-
src lsif upload
52+
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src
53+
chmod +x /usr/local/bin/src
54+
# Upload index with any necessary tokens (shown here using GitHub workflow syntax)
55+
src lsif upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
5356
```
5457

55-
`src lsif upload` may need additional arguments
56-
such as `-github-token`, depending on your setup.
57-
5858
For more examples, see the
5959
[Sourcegraph docs](https://docs.sourcegraph.com/code_intelligence/how-to/index_a_typescript_and_javascript_repository).
6060

0 commit comments

Comments
 (0)