Easily install the Databricks CLI using Homebrew.
Full documentation about installation can be found at:
- (AWS) https://docs.databricks.com/en/dev-tools/cli/install.html
- (Azure) https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/install
- (GCP) https://docs.gcp.databricks.com/en/dev-tools/cli/install.html
Initialize tap:
brew tap databricks/tap
To install or upgrade the Databricks CLI, run:
brew install databricks
If this tap has been updated but you don't see it show up locally, you can force an update with:
brew update --force
If you need to install an older version of the Databricks CLI, you can do so with:
brew tap-new databricks/tap-old
brew extract --version=0.218.0 databricks/tap/databricks databricks/tap-old
brew install [email protected]
# Unlink the latest version (if it's already installed)
brew unlink databricks
# Link the older version
brew link [email protected]
To revert back to the latest version, you can unlink the older version and link the latest version:
# Unlink the older version
brew unlink [email protected]
# Link the latest version
brew link databricks
You can clean up older versions with:
# Display all installed versions
brew list --versions databricks
# Uninstall an older version
brew uninstall [email protected]
You can clean up the tap with older versions with:
brew untap databricks/tap-old
As long as you have configured shell completion for Homebrew itself, shell completion for the Databricks CLI will work out of the box.
You can find documentation for setting this up at https://docs.brew.sh/Shell-Completion.