MCPcopy Create free account
hub / github.com/algolia/cli / NewAPIKeysCmd

Function NewAPIKeysCmd

pkg/cmd/apikeys/apikeys.go:14–27  ·  view source on GitHub ↗

NewAPIKeysCmd returns a new command for API Keys.

(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

12
13// NewAPIKeysCmd returns a new command for API Keys.
14func NewAPIKeysCmd(f *cmdutil.Factory) *cobra.Command {
15 cmd := &cobra.Command{
16 Use: "apikeys",
17 Aliases: []string{"api-key", "api-keys", "apikey"},
18 Short: "Manage your Algolia API keys",
19 }
20
21 cmd.AddCommand(list.NewListCmd(f, nil))
22 cmd.AddCommand(create.NewCreateCmd(f, nil))
23 cmd.AddCommand(delete.NewDeleteCmd(f, nil))
24 cmd.AddCommand(get.NewGetCmd(f, nil))
25
26 return cmd
27}

Callers 1

NewRootCmdFunction · 0.92

Calls 4

NewListCmdFunction · 0.92
NewCreateCmdFunction · 0.92
NewDeleteCmdFunction · 0.92
NewGetCmdFunction · 0.92

Tested by

no test coverage detected