Skip to content

cub link unarchive

Unarchive a link or multiple links

Synopsis

Unarchive links archived with cub link delete --archive.

An archived link is named by a slug made from its ID, id followed by the UUID, or by its UUID. Its slug is restored unless another link in its space 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, and its unit takes values through it again. It is refused while either of its units is archived, and for a link archived with its unit, which comes back when the unit is unarchived.

Examples:

  # Unarchive one link
  cub link unarchive --space my-space id5f0c1d2e-0a4b-4c3d-9e8f-7a6b5c4d3e2f

  # Unarchive the links archived from a space whose slug was my-link
  cub link unarchive --space my-space --where "Labels.ArchivedSlug = 'my-link'"
cub link unarchive [<slug or id>] [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 unarchive
  -o, --output string   Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet           No default output.
      --verbose         Detailed output, additive with default output
      --where string    where filter to select the archived links to unarchive

Options inherited from parent commands

      --component string   the Component of --variant, when that names the variant alone; --variant <component>/<variant> says the same in one flag
      --context string     The context to use for this command
      --debug              Debug output
      --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>; "*" means the same as omitting it
      --variant string     variant to operate in, as <component>/<variant>, or as <variant> with --component: the space naming that Component whose Variant label is <variant>. The same scope as --space, named by what it is rather than by the space's slug; the two cannot be combined

SEE ALSO