# src search-jobs results

<p className="subtitle">
	`src search-jobs results` is a tool that gets the results of a search job on
	a Sourcegraph instance.
</p>

## Usage

```bash
Usage of 'src search-jobs results':
  -c string
        Comma-separated list of columns to display. Available: id,query,state,username,createdat,startedat,finishedat,url,logurl,total,completed,failed,inprogress (default "id,username,state,query")
  -dump-requests
        Log GraphQL requests and responses to stdout
  -get-curl
        Print the curl command for executing this query and exit (WARNING: includes printing your access token!)
  -insecure-skip-verify
        Skip validation of TLS certificates against trusted chains
  -json
        Output results as JSON for programmatic access
  -out string
        File path to save the results (optional)
  -trace
        Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing
  -user-agent-telemetry
        Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true)

        Examples:

                Get the results of a search job:
                  $ src search-jobs results U2VhcmNoSm9iOjY5

                Save search results to a file:
                  $ src search-jobs results U2VhcmNoSm9iOjY5 -out results.jsonl

        The results command retrieves the raw search results in JSON Lines format.
        Each line contains a single JSON object representing a search result. The data
        will be displayed on stdout or written to the file specified with -out.
```
