diff --git a/internal/pkg/agent/cmd/install.go b/internal/pkg/agent/cmd/install.go index 410c232e65b..4fbd37f40da 100644 --- a/internal/pkg/agent/cmd/install.go +++ b/internal/pkg/agent/cmd/install.go @@ -45,12 +45,6 @@ would like the Agent to operate. cmd.Flags().String(flagInstallBasePath, paths.DefaultBasePath, "The path where the Elastic Agent will be installed. It must be an absolute path.") addEnrollFlags(cmd) - // We are not supporting a custom base path, supplied via the `--base-path` CLI - // flag, just yet because we don't have Endpoint support for it yet. So we mark - // this flag as hidden. - // See also: https://github.com/elastic/elastic-agent/pull/2592 - _ = cmd.Flags().MarkHidden(flagInstallBasePath) - return cmd } diff --git a/testing/integration/install_test.go b/testing/integration/install_test.go index 808799aeb66..e2e9d0206cf 100644 --- a/testing/integration/install_test.go +++ b/testing/integration/install_test.go @@ -88,15 +88,6 @@ func TestInstallWithBasePath(t *testing.T) { err = fixture.Prepare(context.Background()) require.NoError(t, err) - // The `--base-path` flag is defined for the `elastic-agent install` CLI sub-command BUT - // it is hidden (see https://github.com/elastic/elastic-agent/pull/2592). So we validate - // here that the usage text for the `install` sub-command does NOT mention the `--base-path` - // flag in it. - const basePathFlag = "--base-path" - output, err := fixture.Exec(context.Background(), []string{"help", "install"}) - require.NoError(t, err) - require.NotContains(t, string(output), basePathFlag) - // Set up random temporary directory to serve as base path for Elastic Agent // installation. tmpDir := t.TempDir()