mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:58:02 +00:00
5463244376
* enable overwrite of adminUser fields in defaults.yaml * create schema and table * cli: create keys * cli: create keys * read encryptionkey from db * merge v2 * file names * cleanup defaults.yaml * remove custom errors * load encryptionKeys on start * cleanup * fix merge * update system defaults * fix error message
34 lines
690 B
Go
34 lines
690 B
Go
package admin
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/caos/logging"
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/caos/zitadel/cmd/admin/initialise"
|
|
"github.com/caos/zitadel/cmd/admin/key"
|
|
"github.com/caos/zitadel/cmd/admin/setup"
|
|
"github.com/caos/zitadel/cmd/admin/start"
|
|
)
|
|
|
|
func New() *cobra.Command {
|
|
adminCMD := &cobra.Command{
|
|
Use: "admin",
|
|
Short: "The ZITADEL admin CLI let's you interact with your instance",
|
|
Long: `The ZITADEL admin CLI let's you interact with your instance`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
logging.New().Info("hello world")
|
|
},
|
|
}
|
|
|
|
adminCMD.AddCommand(
|
|
initialise.New(),
|
|
setup.New(),
|
|
start.New(),
|
|
key.New(),
|
|
)
|
|
|
|
return adminCMD
|
|
}
|