src lsif upload
Flags
Name |
Description |
Default Value |
-associated-index-id |
ID of the associated index record for this upload. For internal use only. |
-1 |
-commit |
The 40-character hash of the commit. Defaults to the currently checked-out commit. |
|
-file |
The path to the LSIF dump file. |
./dump.lsif |
-github-token |
A GitHub access token with 'public_repo' scope that Sourcegraph uses to verify you have access to the repository. |
|
-gitlab-token |
A Gitlab access token with read and write repository scope that Sourcegraph uses to verify you have access to the repository. |
|
-ignore-upload-failure |
Exit with status code zero on upload failure. |
false |
-indexer |
The name of the indexer that generated the dump. This will override the 'toolInfo.name' field in the metadata vertex of the LSIF dump file. This must be supplied if the indexer does not set this field (in which case the upload will fail with an explicit message). |
|
-indexerVersion |
The version of the indexer that generated the dump. This will override the 'toolInfo.version' field in the metadata vertex of the LSIF dump file. This must be supplied if the indexer does not set this field (in which case the upload will fail with an explicit message). |
|
-insecure-skip-verify |
Skip validation of TLS certificates against trusted chains |
false |
-json |
Output relevant state in JSON on success. |
false |
-max-payload-size |
The maximum upload size (in megabytes). Indexes exceeding this limit will be uploaded over multiple HTTP requests. |
100 |
-no-progress |
Do not display progress updates. |
false |
-open |
Open the LSIF upload page in your browser. |
false |
-repo |
The name of the repository (e.g. github.com/gorilla/mux). By default, derived from the origin remote. |
|
-root |
The path in the repository that matches the LSIF projectRoot (e.g. cmd/project1). Defaults to the directory where the dump file is located. |
|
-trace |
-trace=0 shows no logs; -trace=1 shows requests and response metadata; -trace=2 shows headers, -trace=3 shows response body |
0 |
-upload-route |
The path of the upload route. For internal use only. |
/.api/lsif/upload |
Usage
Usage of 'src lsif upload':
-associated-index-id int
ID of the associated index record for this upload. For internal use only. (default -1)
-commit string
The 40-character hash of the commit. Defaults to the currently checked-out commit.
-file string
The path to the LSIF dump file. (default "./dump.lsif")
-github-token string
A GitHub access token with 'public_repo' scope that Sourcegraph uses to verify you have access to the repository.
-gitlab-token string
A Gitlab access token with read and write repository scope that Sourcegraph uses to verify you have access to the repository.
-ignore-upload-failure
Exit with status code zero on upload failure.
-indexer string
The name of the indexer that generated the dump. This will override the 'toolInfo.name' field in the metadata vertex of the LSIF dump file. This must be supplied if the indexer does not set this field (in which case the upload will fail with an explicit message).
-indexerVersion string
The version of the indexer that generated the dump. This will override the 'toolInfo.version' field in the metadata vertex of the LSIF dump file. This must be supplied if the indexer does not set this field (in which case the upload will fail with an explicit message).
-insecure-skip-verify
Skip validation of TLS certificates against trusted chains
-json
Output relevant state in JSON on success.
-max-payload-size int
The maximum upload size (in megabytes). Indexes exceeding this limit will be uploaded over multiple HTTP requests. (default 100)
-no-progress
Do not display progress updates.
-open
Open the LSIF upload page in your browser.
-repo string
The name of the repository (e.g. github.com/gorilla/mux). By default, derived from the origin remote.
-root string
The path in the repository that matches the LSIF projectRoot (e.g. cmd/project1). Defaults to the directory where the dump file is located.
-trace int
-trace=0 shows no logs; -trace=1 shows requests and response metadata; -trace=2 shows headers, -trace=3 shows response body
-upload-route string
The path of the upload route. For internal use only. (default "/.api/lsif/upload")
Examples:
Upload an LSIF dump with explicit repo, commit, and upload files:
$ src lsif upload -repo=FOO -commit=BAR -file=dump.lsif
Upload an LSIF dump for a subproject:
$ src lsif upload -root=cmd/
Upload an LSIF dump when lsifEnforceAuth is enabled:
$ src lsif upload -github-token=BAZ // for Github Code Host
$ src lsif upload -gitlab-token=BAZ // for Gitlab Code Host
Upload an LSIF dump when the LSIF indexer does not not declare a tool name.
$ src lsif upload -indexer=lsif-elixir