Skip to content

cub organization update

cub organization update

Update an organization

Synopsis

Update an organization.

An organization's permissions grant access to it, and its Children permissions, such as CreateChildren and ViewChildren, to the spaces and the other entities that belong to the organization rather than to a space. They do not reach what is in a space: that is the space's own permissions to grant. Changing them requires Manage permission on the organization.

With --patch, only the fields named are changed, as is usual for labels, annotations and permissions: a label or annotation given as key=- is removed.

Examples:

  # Let a group create spaces
  cub organization update --patch my-org --permission CreateChildren:group:platform

  # Let a user view every space, and no longer manage the organization
  cub organization update --patch my-org --permission ViewChildren:user@example.com --permission -Manage:user@example.com

  # Add a label and remove another
  cub organization update --patch my-org --label tier=enterprise --label trial=-
cub organization update <slug or id> [flags]

Options

      --annotation strings     annotations in key=value format; can separate by commas and/or use multiple instances of the flag
      --delete-gate strings    delete gates in key[=true] format; can separate by commas and/or use multiple instances of the flag
      --display-name string    friendly name for the entity, which need not be unique or URL-safe; an entity without one is shown by its slug
      --dry-run                report what the command would write, and write nothing
      --filename string        Read the ConfigHub entity's fields, as YAML or JSON, from file, URL (https://), or stdin (-), as --from-stdin does; mutually exclusive with --from-stdin
      --from-stdin             Read the ConfigHub entity's fields, as YAML or JSON, from stdin; merged with command arguments on create, and merged with command arguments and existing entity on update. A field the entity does not have, or one only the server sets, is refused; cub <entity> explain lists the fields
  -h, --help                   help for update
      --hidden-reason string   hide the entity, giving the reason as a name such as Retired: lists and bulk operations leave it out unless --include-hidden names the reason (use '-' to clear, which shows the entity again). Archived is not one a client sets: delete --archive archives an entity
      --label strings          labels in key=value format; can separate by commas and/or use multiple instances of the flag
  -o, --output string          Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --patch                  use patch API
      --permission strings     permission in format Action:UserIDOrUsername, Action:group:GroupSlugOrID or Action:serviceaccount:ServiceAccountSlugOrID to add, or the same prefixed with - to remove (e.g., Manage:user@example.com, View:group:platform, View:serviceaccount:deploy-bot, -View:user@example.com, can be repeated)
      --quiet                  No default output.
      --replace                Replace entity instead of merging when using --from-stdin or --filename
      --verbose                Detailed output, additive with default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO