|
| 1 | +# `src search-jobs list` |
| 2 | + |
| 3 | +## Flags |
| 4 | + |
| 5 | +| Name | Description | Default Value | |
| 6 | +|------|-------------|---------------| |
| 7 | +| `-asc` | Sort search jobs in ascending order | `false` | |
| 8 | +| `-dump-requests` | Log GraphQL requests and responses to stdout | `false` | |
| 9 | +| `-f` | Format for the output using Go text/template syntax | `\{\{\.ID\}\}: \{\{\.Creator.Username\}\} \{\{\.State\}\} (\{\{\.Query\}\})` | |
| 10 | +| `-get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false` | |
| 11 | +| `-insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false` | |
| 12 | +| `-limit` | Limit the number of search jobs returned | `10` | |
| 13 | +| `-order-by` | Sort search jobs by a field | `CREATED_AT` | |
| 14 | +| `-trace` | Log the trace ID for requests. [See docs](/admin/observability/tracing) | `false` | |
| 15 | +| `-user-agent-telemetry` | Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph | `true` | |
| 16 | + |
| 17 | +## Usage |
| 18 | + |
| 19 | +``` |
| 20 | +Usage of 'src search-jobs list': |
| 21 | + -asc |
| 22 | + Sort search jobs in ascending order |
| 23 | + -dump-requests |
| 24 | + Log GraphQL requests and responses to stdout |
| 25 | + -f string |
| 26 | + Format for the output, using the syntax of Go package text/template. (e.g. "{{.ID}}: {{.Creator.Username}} ({{.Query}})" or "{{.|json}}") (default "{{.ID}}: {{.Creator.Username}} {{.State}}") |
| 27 | + -get-curl |
| 28 | + Print the curl command for executing this query and exit (WARNING: includes printing your access token!) |
| 29 | + -insecure-skip-verify |
| 30 | + Skip validation of TLS certificates against trusted chains |
| 31 | + -limit int |
| 32 | + Limit the number of search jobs returned (default 10) |
| 33 | + -order-by string |
| 34 | + Sort search jobs by a field (default "CREATED_AT") |
| 35 | + -trace |
| 36 | + Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing |
| 37 | + -user-agent-telemetry |
| 38 | + Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true) |
| 39 | +
|
| 40 | +Examples: |
| 41 | +
|
| 42 | + List all search jobs: |
| 43 | +
|
| 44 | + $ src search-jobs list |
| 45 | +
|
| 46 | + List all search jobs in ascending order: |
| 47 | +
|
| 48 | + $ src search-jobs list --asc |
| 49 | +
|
| 50 | + Limit the number of search jobs returned: |
| 51 | +
|
| 52 | + $ src search-jobs list --limit 5 |
| 53 | +
|
| 54 | + Order search jobs by a field (must be one of: QUERY, CREATED_AT, STATE): |
| 55 | +
|
| 56 | + $ src search-jobs list --order-by QUERY |
| 57 | +
|
| 58 | +``` |
0 commit comments