wb resource add-ref git-repo

Name

wb-resource-add-ref-git-repo - Add a referenced Git repository.

Synopsis

wb resource add-ref git-repo [--cloning=<cloningInstructionsOption>] [--description=<description>] [--format=<format>] --repo-url=<repoUrl> [--workspace=<id>] (--id=<id>)

Description

Add a referenced Git repository.

Options

  • --cloning=<cloningInstructionsOption>
    Instructions for handling when cloning the workspace.

    Valid values: COPY_NOTHING, COPY_DEFINITION, COPY_RESOURCE, COPY_REFERENCE, COPY_LINK_REFERENCE

    Default: COPY_REFERENCE
    
  • --description=<description>
    Description of the resource.

  • --format=<format>
    Set the format for printing command output. Defaults to the config format property.

    Valid values: JSON, TEXT

    Default: null
    
  • --id=<id>
    ID of the resource, scoped to the workspace. Only use letters, numbers, dashes, and underscores.

  • --repo-url=<repoUrl>
    HTTPS or SSH URL for cloning the Git repository.

  • --workspace=<id>
    Workspace ID to use for this command only.

Last Modified: 13 November 2025