# src search-jobs restart

<p className="subtitle">
	`src search-jobs restart` is a tool that restarts a search job on a
	Sourcegraph instance.
</p>

## Usage

```bash
Usage of 'src search-jobs restart':
  -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
  -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:

          Restart a search job by ID:

                $ src search-jobs restart U2VhcmNoSm9iOjY5

          Restart a search job and display specific columns:

                $ src search-jobs restart U2VhcmNoSm9iOjY5 -c id,state,query

          Restart a search job and output in JSON format:

                $ src search-jobs restart U2VhcmNoSm9iOjY5 -json

          Available columns are: id, query, state, username, createdat, startedat, finishedat,
          url, logurl, total, completed, failed, inprogress
```
