cub component unarchive
cub component unarchive
Unarchive a component or multiple components
Synopsis
Unarchive components archived with cub component delete --archive.
An archived component is named by a slug made from its ID, id followed by the UUID, or by its UUID. Its slug is restored unless another component has taken it since, in which case it keeps the one made from its ID, and can be renamed. Its backing unit is unarchived with it. --recursive then unarchives every archived space that names it as its variant, recursively, as cub space unarchive --recursive does: that includes a variant archived on its own before the component was, which cub component delete --recursive --archive left as it was. A variant is not unarchived while its component is archived.
Examples:
# Unarchive a component and its variants
cub component unarchive --recursive id5f0c1d2e-0a4b-4c3d-9e8f-7a6b5c4d3e2f
# Unarchive the components archived whose slug was my-app
cub component unarchive --where "Labels.ArchivedSlug = 'my-app'"
cub component unarchive [<slug or id>] [flags]
Options
-h, --help help for unarchive
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
--quiet No default output.
--recursive also unarchive every archived space that names the component as its variant, recursively, including any archived before it
--verbose Detailed output, additive with default output
--where string where filter to select the archived components to unarchive
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub component - Component commands