Installing, Configuring and Using the Azure Databricks CLI
Databricks comes with a CLI tool that provides a way to interface with resources in Azure Databricks. It’s built on top of the Databricks REST API and can be used with the Workspace, DBFS, Jobs, Clusters, Libraries and Secrets API
In order to install the CLI, you’ll need Python version 2.7.9 and above if you’re using Python 2 or Python 3.6 and above if you’re using Python 3.
To install the CLI, use the following pip command:
pip install databricks-cli
or if you’re using Python 3:
pip3 install databricks-cli
You can confirm that everything is working by running the following command:
databricks --version
Before we can actually use the CLI and its commands, we’ll need to set up Authentication for it. To do this, we use a Databricks personal access token. To generate a token, head into user settings in your Azure Databricks profile and go to access tokens.
Click on Generate New Token and enter a description and expiration period.