Skip to content

cub unit approve

cub unit approve

Approve a unit or multiple units

Synopsis

Approve a unit or multiple units using bulk operations.

Single unit approve:

  cub unit approve my-unit

  # Approve a specific revision
  cub unit approve my-unit --revision 5
  cub unit approve my-unit --revision LiveRevisionNum
  cub unit approve my-unit --revision Tag:release-v1.0
  cub unit approve my-unit --revision ChangeSet:feature-rollout

Bulk approve with --where:

Approve multiple units at once based on search criteria.

Examples:

  # Approve all units with specific label
  cub unit approve --where "Labels.Tier = 'backend'"

  # Approve a specific revision for all matching units
  cub unit approve --where "Labels.Tier = 'backend'" --revision LiveRevisionNum

  # Approve units across all spaces (requires --space "*")
  cub unit approve --space "*" --where "Slug = 'backend'"

  # Approve specific units by slug
  cub unit approve --unit my-unit,another-unit
cub unit approve [<unit-slug>] [flags]

Options

      --filter string     Filter entity to apply to the list. Specify as 'space/filter' for cross-space filters or just 'filter' for current space. Supports both slugs and UUIDs. The filter will be combined with any --where clause using AND logic. Examples: "production-filters/security-check", "my-filter-uuid", "validation-rules"
  -h, --help              help for approve
      --revision string   Revision to approve (defaults to HeadRevisionNum). Can be a revision number, 'LiveRevisionNum', 'LastAppliedRevisionNum', 'Tag:slug', 'ChangeSet:slug', etc.
      --unit strings      target specific units by slug or UUID for bulk approve (can be repeated or comma-separated)
      --where string      Filter expression using SQL-inspired syntax. Supports conjunctions with AND. String operators: =, !=, <, >, <=, >=, LIKE, ILIKE, ~~, !~~, ~, ~*, !~, !~*. Pattern matching with LIKE/ILIKE uses % and _ wildcards. Regex operators (~, ~*, !~, !~*) support POSIX regular expressions. 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
      --space string     space ID to perform command on

SEE ALSO