diff --git a/cli/serve.go b/cli/serve.go index 257d3ea..6ded480 100644 --- a/cli/serve.go +++ b/cli/serve.go @@ -27,6 +27,7 @@ func ServeCmd() *cobra.Command { SilenceUsage: true, SilenceErrors: false, PreRunE: func(cmd *cobra.Command, args []string) error { + viper.SetEnvPrefix("sbctl") return viper.BindPFlags(cmd.Flags()) }, RunE: func(cmd *cobra.Command, args []string) error { diff --git a/cli/shell.go b/cli/shell.go index 62a96d3..75f3531 100644 --- a/cli/shell.go +++ b/cli/shell.go @@ -28,6 +28,7 @@ func ShellCmd() *cobra.Command { SilenceUsage: true, SilenceErrors: false, PreRunE: func(cmd *cobra.Command, args []string) error { + viper.SetEnvPrefix("sbctl") return viper.BindPFlags(cmd.Flags()) }, RunE: func(cmd *cobra.Command, args []string) error {