Installing, Configuring and Using the Azure Databricks CLI

Will Velida
3 min readAug 27, 2018
Image result for azure databricks

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.

--

--

Will Velida

Lead Software Engineer at Azenix | Ex-MSFT | International Conference Speaker. | GitHub: https://github.com/willvelida