From b3cd71815c52331f194fbe32ab6829f9fc336103 Mon Sep 17 00:00:00 2001 From: James Broadhead Date: Wed, 8 Apr 2026 13:40:31 +0000 Subject: [PATCH 1/2] Promote aitools from experimental to top-level command The aitools command is feature-complete after the 5-PR series (#4810-#4814) that added state tracking, install/update/uninstall/list/version commands, and project scope support. Move it to a top-level `databricks aitools` command so it is discoverable without knowing the `experimental` prefix. The old `databricks experimental aitools` path is preserved as a hidden deprecated alias for backward compatibility. Co-authored-by: Isaac --- cmd/cmd.go | 2 ++ cmd/experimental/experimental.go | 7 ++++++- experimental/aitools/cmd/aitools.go | 5 ++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 014471f763..54658f6639 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -5,6 +5,7 @@ import ( "strings" "github.com/databricks/cli/cmd/psql" + aitoolscmd "github.com/databricks/cli/experimental/aitools/cmd" ssh "github.com/databricks/cli/experimental/ssh/cmd" "github.com/databricks/cli/cmd/account" @@ -93,6 +94,7 @@ func New(ctx context.Context) *cobra.Command { } // Add other subcommands. + cli.AddCommand(aitoolscmd.NewAitoolsCmd()) cli.AddCommand(api.New()) cli.AddCommand(auth.New()) cli.AddCommand(completion.New()) diff --git a/cmd/experimental/experimental.go b/cmd/experimental/experimental.go index eb3b7814e1..51e869ff16 100644 --- a/cmd/experimental/experimental.go +++ b/cmd/experimental/experimental.go @@ -20,7 +20,12 @@ These commands provide early access to new features that are still under development. They may change or be removed in future versions without notice.`, } - cmd.AddCommand(aitoolscmd.NewAitoolsCmd()) + // Keep aitools under experimental as a hidden backward-compatibility alias. + // The primary command is now registered at the top level. + aitoolsAlias := aitoolscmd.NewAitoolsCmd() + aitoolsAlias.Hidden = true + aitoolsAlias.Deprecated = "use 'databricks aitools' instead" + cmd.AddCommand(aitoolsAlias) return cmd } diff --git a/experimental/aitools/cmd/aitools.go b/experimental/aitools/cmd/aitools.go index f037ac1a22..d110401c00 100644 --- a/experimental/aitools/cmd/aitools.go +++ b/experimental/aitools/cmd/aitools.go @@ -6,9 +6,8 @@ import ( func NewAitoolsCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "aitools", - Hidden: true, - Short: "Databricks AI Tools for coding agents", + Use: "aitools", + Short: "Databricks AI Tools for coding agents", Long: `Manage Databricks AI Tools. Provides commands to: From 802dee21e1559c1dd8c1289985e725ddd5035ef4 Mon Sep 17 00:00:00 2001 From: James Broadhead Date: Wed, 8 Apr 2026 14:40:46 +0000 Subject: [PATCH 2/2] Update help acceptance test snapshot for aitools command Add the new top-level aitools entry to the expected help output. Co-authored-by: Isaac --- acceptance/help/output.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/acceptance/help/output.txt b/acceptance/help/output.txt index dd59847c64..fdec5582b8 100644 --- a/acceptance/help/output.txt +++ b/acceptance/help/output.txt @@ -167,6 +167,7 @@ Developer Tools Additional Commands: account Databricks Account Commands + aitools Databricks AI Tools for coding agents api Perform Databricks API call auth Authentication related commands cache Local cache related commands