src batch apply

Flags

NameDescriptionDefault Value
-allow-unsupportedAllow unsupported code hosts.false
-applyIgnored.false
-cacheDirectory for caching results and repository archives.~/.cache/sourcegraph/batch
-clean-archivesIf true, deletes downloaded repository archives after executing batch spec steps. Note that only the archives related to the actual repositories matched by the batch spec will be cleaned up, and clean up will not occur if src exits unexpectedly.true
-clear-cacheIf true, clears the execution cache and executes all steps anew.false
-dump-requestsLog GraphQL requests and responses to stdoutfalse
-fThe batch spec file to read, or - to read from standard input.
-force-override-ignoreDo not ignore repositories that have a .batchignore file.false
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-jThe maximum number of parallel jobs. Default (or 0) is the number of CPU cores available to Docker.0
-keep-logsRetain logs after executing steps.false
-nAlias for -namespace.
-namespaceThe user or organization namespace to place the batch change within. Default is the currently authenticated user.
-run-as-rootIf true, forces all step containers to run as root.false
-skip-errorsIf true, errors encountered while executing steps in a repository won't stop the execution of the batch spec but only cause that repository to be skipped.false
-text-onlyINTERNAL USE ONLY. EXPERIMENTAL. Switches off the TUI to only print JSON lines.false
-timeoutThe maximum duration a single batch spec step can take.1h0m0s
-tmpDirectory for storing temporary data, such as log files. Default is /tmp. Can also be set with environment variable SRC_BATCH_TMP_DIR; if both are set, this flag will be used and not the environment variable./tmp
-traceLog the trace ID for requests. See docsfalse
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue
-vprint verbose outputfalse
-workspaceWorkspace mode to use ("auto", "bind", or "volume")auto

Usage

SHELL
Usage of 'src batch apply': -allow-unsupported Allow unsupported code hosts. -apply Ignored. -cache string Directory for caching results and repository archives. (default "~/.cache/sourcegraph/batch") -clean-archives If true, deletes downloaded repository archives after executing batch spec steps. Note that only the archives related to the actual repositories matched by the batch spec will be cleaned up, and clean up will not occur if src exits unexpectedly. (default true) -clear-cache If true, clears the execution cache and executes all steps anew. -dump-requests Log GraphQL requests and responses to stdout -f string The batch spec file to read, or - to read from standard input. -force-override-ignore Do not ignore repositories that have a .batchignore file. -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 -j int The maximum number of parallel jobs. Default (or 0) is the number of CPU cores available to Docker. -keep-logs Retain logs after executing steps. -n string Alias for -namespace. -namespace string The user or organization namespace to place the batch change within. Default is the currently authenticated user. -run-as-root If true, forces all step containers to run as root. -skip-errors If true, errors encountered while executing steps in a repository won't stop the execution of the batch spec but only cause that repository to be skipped. -text-only INTERNAL USE ONLY. EXPERIMENTAL. Switches off the TUI to only print JSON lines. -timeout duration The maximum duration a single batch spec step can take. (default 1h0m0s) -tmp string Directory for storing temporary data, such as log files. Default is /tmp. Can also be set with environment variable SRC_BATCH_TMP_DIR; if both are set, this flag will be used and not the environment variable. (default "/tmp") -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) -v print verbose output -workspace string Workspace mode to use ("auto", "bind", or "volume") (default "auto") 'src batch apply' is used to apply a batch spec on a Sourcegraph instance, creating or updating the described batch change if necessary. Usage: src batch apply [command options] [-f FILE] src batch apply [command options] FILE Examples: $ src batch apply -f batch.spec.yaml $ src batch apply -f batch.spec.yaml -namespace myorg $ src batch apply batch.spec.yaml