diff --git a/internal/cli/branding.go b/internal/cli/branding.go index cc822d9eb..5c4573fe3 100644 --- a/internal/cli/branding.go +++ b/internal/cli/branding.go @@ -84,7 +84,6 @@ func brandingCmd(cli *cli) *cobra.Command { cmd.AddCommand(showBrandingCmd(cli)) cmd.AddCommand(updateBrandingCmd(cli)) cmd.AddCommand(templateCmd(cli)) - cmd.AddCommand(customDomainsCmd(cli)) cmd.AddCommand(emailTemplateCmd(cli)) cmd.AddCommand(textsCmd(cli)) return cmd diff --git a/internal/cli/custom_domains.go b/internal/cli/custom_domains.go index d394974e2..f7057e131 100644 --- a/internal/cli/custom_domains.go +++ b/internal/cli/custom_domains.go @@ -95,9 +95,9 @@ func listCustomDomainsCmd(cli *cli) *cobra.Command { Args: cobra.NoArgs, Short: "List your custom domains", Long: `List your existing custom domains. To create one try: -auth0 branding domains create`, - Example: `auth0 branding domains list -auth0 branding domains ls`, +auth0 domains create`, + Example: `auth0 domains list +auth0 domains ls`, RunE: func(cmd *cobra.Command, args []string) error { var list []*management.CustomDomain @@ -127,8 +127,8 @@ func showCustomDomainCmd(cli *cli) *cobra.Command { Args: cobra.MaximumNArgs(1), Short: "Show a custom domain", Long: "Show a custom domain.", - Example: `auth0 branding domains show -auth0 branding domains show `, + Example: `auth0 domains show +auth0 domains show `, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { err := customDomainID.Pick(cmd, &inputs.ID, cli.customDomainsPickerOptions) @@ -171,8 +171,8 @@ func createCustomDomainCmd(cli *cli) *cobra.Command { Args: cobra.NoArgs, Short: "Create a custom domain", Long: "Create a custom domain.", - Example: `auth0 branding domains create -auth0 branding domains create `, + Example: `auth0 domains create +auth0 domains create `, RunE: func(cmd *cobra.Command, args []string) error { if err := customDomainDomain.Ask(cmd, &inputs.Domain, nil); err != nil { return err @@ -232,9 +232,9 @@ func updateCustomDomainCmd(cli *cli) *cobra.Command { Args: cobra.MaximumNArgs(1), Short: "Update a custom domain", Long: "Update a custom domain.", - Example: `auth0 branding domains update -auth0 branding domains update --policy compatible -auth0 branding domains update -p compatible --ip-header "cf-connecting-ip"`, + Example: `auth0 domains update +auth0 domains update --policy compatible +auth0 domains update -p compatible --ip-header "cf-connecting-ip"`, RunE: func(cmd *cobra.Command, args []string) error { var current *management.CustomDomain @@ -308,8 +308,8 @@ func deleteCustomDomainCmd(cli *cli) *cobra.Command { Args: cobra.MaximumNArgs(1), Short: "Delete a custom domain", Long: "Delete a custom domain.", - Example: `auth0 branding domains delete -auth0 branding domains delete `, + Example: `auth0 domains delete +auth0 domains delete `, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { err := customDomainID.Pick(cmd, &inputs.ID, cli.customDomainsPickerOptions) @@ -358,8 +358,8 @@ func verifyCustomDomainCmd(cli *cli) *cobra.Command { Args: cobra.MaximumNArgs(1), Short: "Verify a custom domain", Long: "Verify a custom domain.", - Example: `auth0 branding domains verify -auth0 branding domains verify `, + Example: `auth0 domains verify +auth0 domains verify `, RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { err := customDomainID.Pick(cmd, &inputs.ID, cli.customDomainsPickerOptions) diff --git a/internal/cli/root.go b/internal/cli/root.go index b8e167ef2..c6e53a308 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -177,6 +177,7 @@ func addSubcommands(rootCmd *cobra.Command, cli *cli) { rootCmd.AddCommand(rolesCmd(cli)) rootCmd.AddCommand(organizationsCmd(cli)) rootCmd.AddCommand(brandingCmd(cli)) + rootCmd.AddCommand(customDomainsCmd(cli)) rootCmd.AddCommand(ipsCmd(cli)) rootCmd.AddCommand(quickstartsCmd(cli)) rootCmd.AddCommand(attackProtectionCmd(cli)) diff --git a/internal/display/custom_domain.go b/internal/display/custom_domain.go index d2aa8107c..201717f25 100644 --- a/internal/display/custom_domain.go +++ b/internal/display/custom_domain.go @@ -54,7 +54,7 @@ func (r *Renderer) CustomDomainList(customDomains []*management.CustomDomain) { if len(customDomains) == 0 { r.EmptyState(resource) - r.Infof("Use 'auth0 branding domains create' to add one") + r.Infof("Use 'auth0 domains create' to add one") return } diff --git a/test/integration/test-cases.yaml b/test/integration/test-cases.yaml index a5eea8f65..c3b071bdc 100644 --- a/test/integration/test-cases.yaml +++ b/test/integration/test-cases.yaml @@ -29,7 +29,7 @@ tests: auth0 orgs list: exit-code: 0 - auth0 branding domains list: + auth0 domains list: exit-code: 0 auth0 quickstarts list: