Skip to content

cub component get

cub component get

Get details about a component

Synopsis

Get detailed information about a Component entity, including which ChangeWorkflows its promotions and releases may use, whether one is required, and whether changes to its variants must be tracked by a ChangeSet or ChangeOrder.

The Owner row is the Component's own Owner label when it has one. Otherwise it is the Owner label all of the Component's spaces share with one value, and it is empty when they disagree, when one of them has no Owner label, or when the Component has no spaces. -o json and -o jq return the Component as stored, so .Component.Labels.Owner is its own label only.

Examples:

  # Get component details in table format
  cub component get my-app

  # Get component details in JSON format
  cub component get -o json my-app

  # Get the component's ID
  cub component get my-app -o jq=.Component.ComponentID
cub component get <name or id> [flags]

Options

  -h, --help            help for get
  -o, --output string   Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet           No default output.
      --select string   Comma-separated list of fields to retrieve and display. Entity IDs and Slug are always included. Example: "DisplayName,CreatedAt,Labels"
      --verbose         Detailed output, additive with default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO