Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
  1. Docs
  2. cli
  3. references
  4. batch
  5. exec

src batch exec

Flags

NameDescriptionDefault Value
-binaryDiffsWhether to encode diffs as base64.false
-fThe workspace execution input file to read.
-repoPath of the checked out repo on disk.
-run-as-image-userTrue to run step containers as the default image user; if false or omitted, containers are always run as root.false
-timeoutThe maximum duration a single batch spec step can take.1h0m0s
-tmpDirectory for storing temporary data.
-workspaceFilesPath of workspace files on disk.

Usage

Usage of 'src batch exec':
  -binaryDiffs
    	Whether to encode diffs as base64.
  -f string
    	The workspace execution input file to read.
  -repo string
    	Path of the checked out repo on disk.
  -run-as-image-user
    	True to run step containers as the default image user; if false or omitted, containers are always run as root.
  -timeout duration
    	The maximum duration a single batch spec step can take. (default 1h0m0s)
  -tmp string
    	Directory for storing temporary data.
  -workspaceFiles string
    	Path of workspace files on disk.

INTERNAL USE ONLY: 'src batch exec' executes the given raw batch spec in the given workspaces.

The input file contains a JSON dump of the WorkspacesExecutionInput struct in
github.com/sourcegraph/sourcegraph/lib/batches.

Usage:

    src batch exec -f FILE -repo DIR -workspaceFiles DIR [command options]

Examples:

    $ src batch exec -f batch-spec-with-workspaces.json


On this page

  1. `src batch exec`

    1. Flags
    1. Usage