(cli *cli)
| 82 | } |
| 83 | |
| 84 | func universalLoginTemplatesCmd(cli *cli) *cobra.Command { |
| 85 | cmd := &cobra.Command{ |
| 86 | Use: "templates", |
| 87 | Short: "Manage custom Universal Login templates", |
| 88 | Long: `Manage custom [page templates](https://auth0.com/docs/universal-login/new-experience/universal-login-page-templates). This requires a custom domain to be configured for the tenant. |
| 89 | |
| 90 | This command will open two windows: |
| 91 | |
| 92 | * A browser window with a [Storybook](https://storybook.js.org/) that shows the login page with the page template applied: |
| 93 | |
| 94 |  |
| 95 | |
| 96 | * The default terminal editor, with the page template code: |
| 97 | |
| 98 |  |
| 99 | |
| 100 | You now change the page template code, and the changes will be reflected in the browser window. |
| 101 | |
| 102 | Once you close the window, you’ll be asked if you want to save the template. If you answer Yes, the template will be uploaded to your tenant. |
| 103 | `, |
| 104 | } |
| 105 | |
| 106 | cmd.SetUsageTemplate(resourceUsageTemplate()) |
| 107 | cmd.AddCommand(showBrandingTemplateCmd(cli)) |
| 108 | cmd.AddCommand(updateBrandingTemplateCmd(cli)) |
| 109 | |
| 110 | return cmd |
| 111 | } |
| 112 | |
| 113 | func showUniversalLoginCmd(cli *cli) *cobra.Command { |
| 114 | cmd := &cobra.Command{ |
no test coverage detected