Skip to content

cub organization create

cub organization create

Create an organization

Synopsis

Create a new organization as a top-level division for your access management.

The identity provider requires an email domain for each organization: give it with --email-domain, or as EmailDomain in the configuration read with --from-stdin or --filename.

Examples:

  # Create a new organization named "my-organization" with verbose output, reading configuration from stdin
  # Verbose output prints the details of the created entity
  cub organization create --verbose -o json --from-stdin my-organization

  # Create a new organization with minimal output
  cub organization create my-organization --email-domain example.com
cub organization create <organization name> --email-domain <domain> [flags]

Options

      --allow-exists          Allow creation of resources that already exist
      --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
      --email-domain string   email domain of the organization, which the identity provider requires; overrides EmailDomain read with --from-stdin or --filename
      --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 create
      --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>
      --quiet                 No default output.
      --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