MCPcopy Create free account
hub / github.com/GetStream/stream-cli / newAppCmd

Function newAppCmd

pkg/cmd/config/config.go:28–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func newAppCmd() *cobra.Command {
29 return &cobra.Command{
30 Use: "new",
31 Short: "Add a new application",
32 Long: "Add a new application which can be used for further operations",
33 Example: heredoc.Doc(`
34 # Add a new application to the CLI
35 $ stream-cli config new
36 ? What is the name of your app? (eg. prod, staging, testing) testing
37 ? What is your access key? abcd1234efgh456
38 ? What is your access secret key? ***********************************
39 ? (optional) Which base URL do you want to use for Chat? https://chat.stream-io-api.com
40
41 Application successfully added. 🚀
42 `),
43 RunE: func(cmd *cobra.Command, args []string) error {
44 return runQuestionnaire(cmd)
45 },
46 }
47}
48
49func removeAppCmd() *cobra.Command {
50 return &cobra.Command{

Callers 1

NewRootCmdFunction · 0.85

Calls 1

runQuestionnaireFunction · 0.85

Tested by

no test coverage detected