cub invocation invoke set
cub invocation invoke set
Execute a mutating stored Invocation
Synopsis
Execute a single stored Invocation whose underlying function is mutating (Mutating=true), supplying values for its declared parameters.
'cub invocation invoke set' accepts only mutating Invocations, so an agent's permissions can be scoped to this operation class via the command.
Supply each declared parameter with a repeated --param flag:
cub invocation invoke set rbac-add-verb \ --space '*' --where "Space.Labels.Component = 'checkout'" \ --param verb=create --param role=app-reader --param namespace=prod
The supplied values are validated against the Invocation's declared Parameters (every required parameter must be present; unknown names are rejected) and become the scope for expanding the Invocation's templated argument values.
cub invocation invoke set <invocation> [--param name=value ...] [flags]
Options
--change-desc string change description
--changeset string changeset to associate units with
--dry-run dry run mode: execute functions but skip updating configuration data
--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 set
--invocation strings execute invocations by UUID, slug, or space/slug (can be repeated or comma-separated)
--livestate-type string Invoke the function on the live state and use the flag value as the toolchain type for live state.
--other-data-source string additional data source to pass to functions (e.g., LiveRevisionNum)
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
-O, --output-file string Write payload to FILE. Accepts {space}, {unit}, {section} placeholders.
--param stringArray value for a declared parameter, as name=value (can be repeated)
--quiet No default output.
--resource-type string resource-type filter
--revision string target a specific revision (format: unit-slug/revision-number, e.g. mydeployment/3)
--show string Select which part of the function response to display. One of: output, values, data
--timeout string completion timeout as a duration with units, such as 10s or 2m (default "10m0s")
--toolchain string Toolchain type for the function invocations (default "Kubernetes/YAML")
--trigger strings execute triggers by UUID, slug, or space/slug (can be repeated or comma-separated)
--unit strings target specific units by slug or UUID (can be repeated or comma-separated)
--update-apply-gates update ApplyGates on units based on trigger results (requires --trigger)
--verbose Detailed output, additive with default output
--wait wait for completion (default true)
--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. Examples: "Slug LIKE 'app-%'", "DisplayName ILIKE '%backend%'", "Slug ~ '^[a-z]+-[0-9]+$'"
--where-data string where data filter
--where-resource string filter which resources the function operates on
--worker string worker to execute the function
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
- cub invocation invoke - Execute a stored Invocation (get/set/vet by operation class)