databrickslabs / dbx

🧱 Databricks CLI eXtensions - aka dbx is a CLI tool for development and advanced Databricks workflows management.
https://dbx.readthedocs.io
Other
439 stars 120 forks source link

databricks-cli installation needs to be updated to the new version #837

Closed IamSandeepGunda closed 1 year ago

IamSandeepGunda commented 1 year ago

Expected Behavior

╰─ databricks -v Databricks CLI v0.202.0

Current Behavior

╰─ databricks -v
Version 0.17.7

Steps to Reproduce (for bugs)

databricks -v

Context

Databricks has launched a new standalone CLI which has a version v0.202.0. This is upgraded with a lot of new features from Databricks.

However, dbx installs databricks-cli versioned at 0.17.7 which databricks has now declared as Legacy.

The current situation creates a mismatched environment where there are 2 databricks-cli running side by side on a poetry setup. The poetry environment has the legacy CLI, whereas outside poetry there's the manually installed new CLI.

DBX should adopt the new CLI and have a unified experience.

Your Environment

renardeinside commented 1 year ago

hi @IamSandeepGunda , unfortunately the databricks-cli is a hard-pinned dependency of dbx. I would recommend installing dbx inside a python virtualenv (e.g. in conda env or in venv or in poetry env) to avoid mixing the main CLI and the legacy CLI which we're dependent on.