cub variant changeset open
cub variant changeset open
Open a changeset on the units of a variant
Synopsis
Open a changeset on the units of a variant: every unit of the variant's space that is not in a changeset already, or those --where selects among them.
The changeset is named by slug, space/slug, or UUID; a bare slug is looked up in the variant's space. When the variant is a Variant of a Component, the changeset's ChangeWorkflow has to be one the Component allows, and the changeset needs one if the Component requires it.
Examples:
# Open a changeset on every unit of apptique-dev.
cub changeset create --space apptique-dev hotfix --change-workflow platform/changeset-review
cub variant changeset open apptique-dev hotfix
# Open it on the workloads only.
cub variant changeset open apptique-dev hotfix --where "Slug LIKE 'deployment-%'"
cub variant changeset open <variant> <changeset> [flags]
Options
--dry-run report which units the changeset would be opened on, and change nothing
-h, --help help for open
--include-hidden string[="*"] Also select hidden entities, to list or to act on: those hidden for the given HiddenReasons, comma-separated, as in --include-hidden=BackingUnit, or for any reason when given no value or "*". ConfigHub/YAML Units, which hold the configuration of other entities, are hidden with the reason BackingUnit. A --where naming entities by Slug or ID selects them whether hidden or not
--where string Filter expression using SQL-inspired syntax. Supports conjunctions with AND. String operators: =, !=, <, >, <=, >=, LIKE, NOT LIKE, ILIKE, ~~, !~~, ~, ~*, !~, !~*. Pattern matching with LIKE/ILIKE uses % and _ wildcards. Regex operators (~, ~*, !~, !~*) support POSIX regular expressions. A related entity is referenced by prefix, as in "UpstreamUnit.Slug = 'base'"; when the reference names a list, a * segment matches any element, as in "FromLink.*.Slug = 'upgrade-app'". Examples: "Slug LIKE 'app-%'", "DisplayName ILIKE '%backend%'", "Slug ~ '^[a-z]+-[0-9]+$'"
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub variant changeset - Open and close changesets on the units of a variant