MCPcopy Create free account
hub / github.com/auth0/auth0-cli / universalLoginTemplatesCmd

Function universalLoginTemplatesCmd

internal/cli/universal_login.go:84–111  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

82}
83
84func 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
90This 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![storybook](images/templates-storybook.png)
95
96* The default terminal editor, with the page template code:
97
98![storybook](images/templates-vs-code.png)
99
100You now change the page template code, and the changes will be reflected in the browser window.
101
102Once 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
113func showUniversalLoginCmd(cli *cli) *cobra.Command {
114 cmd := &cobra.Command{

Callers 1

universalLoginCmdFunction · 0.85

Calls 3

resourceUsageTemplateFunction · 0.85
showBrandingTemplateCmdFunction · 0.85

Tested by

no test coverage detected