Skip to content

cub auth switch

cub auth switch

Switch to a different organization

Synopsis

Switch to a different organization without going through the browser UI.

The organization argument can be a partial match of:

  • Organization Display Name (e.g., "ConfigHub")
  • Organization Slug (e.g., "org_01jsqq70m483a3b1fk3zfs9z1a")
  • Organization ID (ConfigHub UUID, e.g., "2af2356f-8587-4816-8619-77dfa85fb524")
  • External ID (WorkOS ID, e.g., "org_01JSQQ70M483A3B1FK3ZFS9Z1A")

Examples:

  # Switch to organization by display name
  cub auth switch "ConfigHub"

  # Switch to organization by slug
  cub auth switch "org_01jsqq70m483a3b1fk3zfs9z1a"
cub auth switch [organization] [flags]

Options

  -h, --help   help for switch

Options inherited from parent commands

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

SEE ALSO