Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions docs/cli/references/debug.mdx

This file was deleted.

37 changes: 37 additions & 0 deletions docs/cli/references/debug/compose.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# `src debug compose`


## Flags

| Name | Description | Default Value |
|------|-------------|---------------|
| `-no-configs` | If true, exclude Sourcegraph configuration files. Defaults to false. | `false` |
| `-o` | The name of the output zip archive | `debug.zip` |


## Usage

```

'src debug compose' invokes docker cli diagnostic commands targeting a set of containers that are members of a docker-compose network,
writing an archive file from their returns.

Usage:

src debug compose [command options]

Flags:

-o Specify the name of the output zip archive.
--no-configs Don't include Sourcegraph configuration json.

Examples:

$ src debug compose -o debug.zip

$ src -v debug compose -no-configs -o foo.zip



```

9 changes: 9 additions & 0 deletions docs/cli/references/debug/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# `src debug`

## Subcommands


* [`compose`](debug/compose)
* [`kube`](debug/kube)
* [`server`](debug/server)

40 changes: 40 additions & 0 deletions docs/cli/references/debug/kube.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# `src debug kube`


## Flags

| Name | Description | Default Value |
|------|-------------|---------------|
| `-n` | The namespace passed to kubectl commands, if not specified the 'default' namespace is used | `default` |
| `-no-configs` | If true, exclude Sourcegraph configuration files. Defaults to false. | `false` |
| `-o` | The name of the output zip archive | `debug.zip` |


## Usage

```

'src debug kube' invokes kubectl diagnostic commands targeting kubectl's current-context, writing returns to an archive.

Usage:

src debug kube [command options]

Flags:

-o Specify the name of the output zip archive.
-n Specify the namespace passed to kubectl commands. If not specified the 'default' namespace is used.
--no-config Don't include Sourcegraph configuration json.

Examples:

$ src debug kube -o debug.zip

$ src -v debug kube -n ns-sourcegraph -o foo

$ src debug kube -no-configs -o bar.zip



```

38 changes: 38 additions & 0 deletions docs/cli/references/debug/server.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# `src debug server`


## Flags

| Name | Description | Default Value |
|------|-------------|---------------|
| `-c` | The container to target | |
| `-no-configs` | If true, exclude Sourcegraph configuration files. Defaults to false. | `false` |
| `-o` | The name of the output zip archive | `debug.zip` |


## Usage

```

'src debug server' invokes docker cli diagnostic commands targeting a Sourcegraph server container,
and writes an archive file from their returns.

Usage:

src debug server [command options]

Flags:

-o Specify the name of the output zip archive.
-no-config Don't include Sourcegraph configuration json.

Examples:

$ src debug server -c foo -o debug.zip

$ src -v debug server --no-configs -c ViktorVaughn -o foo.zip

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Viktor is not in the dictionary.

Did you mean Victor?

Suggested change
$ src -v debug server --no-configs -c ViktorVaughn -o foo.zip
$ src -v debug server --no-configs -c VictorVaughn -o foo.zip

Please correct the spelling, or add the word to cspell-allow-list.txt if it is correct.




```

11 changes: 11 additions & 0 deletions docs/cli/references/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,20 @@
* [`abc`](references/abc)
* [`api`](references/api)
* [`auth`](references/auth)
* [`batch`](references/batch)
* [`code-intel`](references/code-intel)
* [`codeowners`](references/codeowners)
* [`config`](references/config)
* [`debug`](references/debug)
* [`extsvc`](references/extsvc)
* [`login`](references/login)
* [`lsp`](references/lsp)
* [`orgs`](references/orgs)
* [`repos`](references/repos)
* [`search`](references/search)
* [`search-jobs`](references/search-jobs)
* [`serve-git`](references/serve-git)
* [`snapshot`](references/snapshot)
* [`users`](references/users)
* [`version`](references/version)

33 changes: 0 additions & 33 deletions docs/cli/references/search-jobs.mdx

This file was deleted.

58 changes: 35 additions & 23 deletions docs/cli/references/search-jobs/cancel.mdx
Original file line number Diff line number Diff line change
@@ -1,37 +1,49 @@
# src search-jobs cancel
# `src search-jobs cancel`


## 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` |
| `-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` |

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

## Usage

```bash
```
Usage of 'src search-jobs cancel':
-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")
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
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!)
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
Skip validation of TLS certificates against trusted chains
-json
Output results as JSON for programmatic access
Output results as JSON for programmatic access
-trace
Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing
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:

Cancel a search job by ID:

$ src search-jobs cancel U2VhcmNoSm9iOjY5

Arguments:
The ID of the search job to cancel.
Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true)

Examples:

Cancel a search job by ID:

$ src search-jobs cancel U2VhcmNoSm9iOjY5

Arguments:
The ID of the search job to cancel.

The cancel command stops a running search job and outputs a confirmation message.


The cancel command stops a running search job and outputs a confirmation message.
```

70 changes: 41 additions & 29 deletions docs/cli/references/search-jobs/create.mdx
Original file line number Diff line number Diff line change
@@ -1,43 +1,55 @@
# src search-jobs create
# `src search-jobs create`


## 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` |
| `-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` |

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

## Usage

```bash
```
Usage of 'src search-jobs create':
-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")
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
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!)
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
Skip validation of TLS certificates against trusted chains
-json
Output results as JSON for programmatic access
Output results as JSON for programmatic access
-trace
Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing
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:

Create a search job:

$ src search-jobs create "repo:^github\.com/sourcegraph/sourcegraph$ sort:indexed-desc"

Create a search job and display specific columns:

$ src search-jobs create "repo:sourcegraph" -c id,state,username

Create a search job and output in JSON format:

$ src search-jobs create "repo:sourcegraph" -json
Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph (default true)

Examples:

Create a search job:

$ src search-jobs create "repo:^github\.com/sourcegraph/sourcegraph$ sort:indexed-desc"

Create a search job and display specific columns:

$ src search-jobs create "repo:sourcegraph" -c id,state,username

Create a search job and output in JSON format:

$ src search-jobs create "repo:sourcegraph" -json

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


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

Loading
Loading