cub run search-replace
cub run search-replace
Replace all instances of the search-value in all strings of all resource types with replace-value. Set regexp to true to match search-value as a regular expression and expand submatch references in replace-value, similar to sed. Mutating. Supported toolchains: AppConfig/Env, AppConfig/INI, AppConfig/JSON, AppConfig/Properties, AppConfig/TOML, AppConfig/Text, AppConfig/YAML, ConfigHub/YAML, Kubernetes/YAML
cub run search-replace [flags]
Options
-h, --help help for search-replace
--regexp If true, interpret search-value as an RE2 regular expression and expand submatch references in replace-value, conceptually similar to sed. Defaults to false (literal substring replacement).
--replace-value string (required) String value to use as the replacement for search-value. When regexp is true, $1, $name, ${name} references expand to submatches, as with sed
--search-value string (required) String value to search for
Options inherited from parent commands
--change-desc string change description
--changeset string changeset to associate units with
--clearance stringArray class of guarded reason this change is cleared for, as KEY, KEY=VALUE[,VALUE...], KEY!=VALUE[,VALUE...], or !KEY to refuse any path carrying KEY (repeatable). A guarded path this does not cover is not written, and the withheld change is reported as a conflict
--context string The context to use for this command
--debug Debug output
--dry-run dry run mode: execute functions but skip updating configuration data
--executor-space string Space ID or slug whose executor to use for builtin functions (org-level only)
--filter string filter to apply (slug, space/filter, or UUID)
--guard stringArray reason to record on the paths this change writes, as KEY=VALUE (repeatable). A later operation must be cleared for it before overwriting those paths. Adds and overwrites only; retiring a guard is cub unit set-guard --remove-guard
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
--protect record the paths this change writes as protected local overrides, so a later merge from upstream does not overwrite them; by default a change claims nothing and each path keeps the protection it already has
--quiet No output
--resource-type string resource-type filter
--show string Select which part of the function response to display. One of: output, values, data
--space string space to operate in, by slug or UUID. Omitted, a list or bulk operation spans the organization and a single entity is named as <space>/<slug>
--toolchain string Toolchain type for the function invocations (default "Kubernetes/YAML")
--unit strings target specific units by slug or UUID (can be repeated or comma-separated)
--wait wait for completion
--where string where filter
--where-data string where data filter
--where-resource string filter which resources the function operates on
--worker string worker to execute the function
SEE ALSO
- cub run - invoke a function