# `src search-jobs results`


## Flags

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


## Usage

```
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://sourcegraph.com/docs/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.
	

```
	