diff --git a/internal/flink/command.go b/internal/flink/command.go index d50d36b39a..8b265d5405 100644 --- a/internal/flink/command.go +++ b/internal/flink/command.go @@ -7,6 +7,7 @@ import ( pcmd "github.com/confluentinc/cli/v3/pkg/cmd" "github.com/confluentinc/cli/v3/pkg/config" + "github.com/confluentinc/cli/v3/pkg/featureflags" ) type command struct { @@ -22,7 +23,9 @@ func New(cfg *config.Config, prerunner pcmd.PreRunner) *cobra.Command { c := &command{pcmd.NewAuthenticatedCLICommand(cmd, prerunner)} - cmd.AddCommand(c.newArtifactCommand()) + if cfg.IsTest || featureflags.Manager.BoolVariation("cli.flink_artifact.early_access", cfg.Context(), config.CliLaunchDarklyClient, true, false) { + cmd.AddCommand(c.newArtifactCommand()) + } cmd.AddCommand(c.newComputePoolCommand()) cmd.AddCommand(c.newRegionCommand()) cmd.AddCommand(c.newShellCommand(prerunner))