From 27f80642ac2cd85394c0e50b4377d64867a6c367 Mon Sep 17 00:00:00 2001 From: Grigory Panov Date: Mon, 6 Jul 2026 10:34:14 +0200 Subject: [PATCH] Unveil local-env: make the command visible, add help + changelog Eighth and final PR in the stacked series. Flips the feature from implemented-but-hidden to released: - cmd/localenv/localenv.go: remove Hidden:true so `local-env` appears in `databricks --help` and completion. - acceptance/help/output.txt: regenerated global-help golden now lists local-env under Developer Tools. - NEXT_CHANGELOG.md: announce `databricks local-env python sync`. This is the only PR that changes user-visible surface; everything it exposes was reviewed and tested in PRs 1-7. Reverting this PR alone re-hides the feature without touching any implementation. Co-authored-by: Isaac --- NEXT_CHANGELOG.md | 1 + acceptance/help/output.txt | 1 + cmd/localenv/localenv.go | 5 ----- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 57d93cb0fcd..1a4e9c9e350 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -7,6 +7,7 @@ ### CLI * An explicitly selected profile (`--profile` or a bundle's `workspace.profile`) now takes precedence over auth environment variables (`DATABRICKS_HOST`, `DATABRICKS_TOKEN`, etc.) instead of being silently shadowed by them; env vars still fill auth fields the profile leaves empty ([#5096](https://github.com/databricks/cli/issues/5096)). +* Add `databricks local-env python sync` to provision a local Python environment (Python version, `databricks-connect` pin, and dependency constraints) matched to the selected Databricks compute target. A project with no `pyproject.toml` is initialized from scratch; an existing one is merged in place. Supports `--cluster`/`--serverless`/`--job` target selection, `--constraints-only` (skip `databricks-connect`), `--check` (dry run), and `--output json` for the VS Code extension. ### Bundles diff --git a/acceptance/help/output.txt b/acceptance/help/output.txt index e86d8c0907e..09fddf50a95 100644 --- a/acceptance/help/output.txt +++ b/acceptance/help/output.txt @@ -168,6 +168,7 @@ Environments Developer Tools bundle Declarative Automation Bundles let you express data/AI/analytics projects as code. + local-env Manage local development environments matched to Databricks compute sync Synchronize a local directory to a workspace directory Additional Commands: diff --git a/cmd/localenv/localenv.go b/cmd/localenv/localenv.go index b93c36f7102..97a38b185d4 100644 --- a/cmd/localenv/localenv.go +++ b/cmd/localenv/localenv.go @@ -9,16 +9,11 @@ import ( // New returns the local-env command group. The group, subgroup, and verb names // come from the single command-name constants in libs/localenv so a rename is a // one-location change (spec ยง0 / invariant 8). -// -// The command is Hidden while the feature lands across the stacked PRs: it is -// wired and runnable for dogfooding, but stays out of help and completion until -// the final PR unveils it (removes this flag, adds the help line and changelog). func New() *cobra.Command { cmd := &cobra.Command{ Use: libslocalenv.CommandGroup, Short: "Manage local development environments matched to Databricks compute", GroupID: "development", - Hidden: true, Long: `Manage local development environments matched to a Databricks compute target. Derives the Python version, databricks-connect version, and dependency