Skip to content

cub unit cancel

cub unit cancel

Cancel operations for units

Synopsis

Cancel operations for units.

Examples:

  # Cancel a single unit by slug
  cub unit cancel my-unit

  # Cancel operations for all units with specific label
  cub unit cancel --where "Labels.Tier = 'backend'"

  # Cancel operations for units in a specific space
  cub unit cancel --space my-space --where "Status = 'Progressing'"

  # Cancel operations with multiple label conditions
  cub unit cancel --space my-space --where "Labels.App = 'api' AND Labels.Tier = 'backend'"

  # Cancel operations for specific units by slug
  cub unit cancel --unit my-unit,another-unit

  # Cancel operations across all spaces (requires --space "*")
  cub unit cancel --space "*" --where "Slug = 'backend'"
cub unit cancel [<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 cancel
      --unit strings    target specific units by slug or UUID for bulk cancel (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