Skip to content

cub release publish

cub release publish

Publish a release

Synopsis

Publish a Release for a consuming Target, bundling the Units in that are assigned to that Target.

is the Space whose Units are bundled (and becomes the Release's Space); a Space ID is also accepted. The consuming Target is addressed as / (a bare resolves in the selected or default Space, and a Target ID is also accepted); it may live in a different Space than the bundled Units.

By default each bundled Unit is captured at its head Revision. Pass --revision to instead pin each Unit to the highest-numbered Revision carrying that Tag; a Unit with no matching tagged Revision falls back to its head Revision. The revision Tag slug is resolved within the bundled Units' Space ().

Examples:

  cub release publish my-space target-space/my-target

  # Bundle each Unit at the Revision tagged "v1.2.0"
  cub release publish --revision v1.2.0 my-space target-space/my-target
cub release publish <space-slug> <target-space>/<target-slug> [flags]

Options

  -h, --help              help for publish
  -o, --output string     Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet             No default output.
      --revision string   Tag slug identifying the tagged Revision to bundle for each Unit. Units without a matching tagged Revision fall back to their head Revision.
      --verbose           Detailed output, additive with default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output
      --space string     space ID to perform command on

SEE ALSO