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

Function downloadQuickstartCmd

internal/cli/quickstarts.go:107–131  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

105}
106
107func downloadQuickstartCmd(cli *cli) *cobra.Command {
108 var inputs qsInputs
109
110 cmd := &cobra.Command{
111 Use: "download",
112 Args: cobra.MaximumNArgs(1),
113 Short: "Download a Quickstart sample app for a specific tech stack",
114 Long: "Download a Quickstart sample application for that’s already configured for your Auth0 application. " +
115 "There are many different tech stacks available.",
116 Example: ` auth0 quickstarts download
117 auth0 quickstarts download <app-id>
118 auth0 quickstarts download <app-id> --stack <stack>
119 auth0 qs download <app-id> -s <stack>
120 auth0 qs download <app-id> -s "Next.js"
121 auth0 qs download <app-id> -s "Next.js" --force`,
122 RunE: downloadQuickstart(cli, &inputs),
123 }
124
125 cmd.SetUsageTemplate(resourceUsageTemplate())
126
127 cmd.Flags().BoolVar(&cli.force, "force", false, "Skip confirmation.")
128 qsStack.RegisterString(cmd, &inputs.Stack, "")
129
130 return cmd
131}
132
133func listQuickstarts(cli *cli) func(cmd *cobra.Command, args []string) error {
134 return func(cmd *cobra.Command, args []string) error {

Callers 1

quickstartsCmdFunction · 0.85

Calls 3

downloadQuickstartFunction · 0.85
resourceUsageTemplateFunction · 0.85
RegisterStringMethod · 0.80

Tested by

no test coverage detected