---
title: Databricks CLI
description: Learn about the Databricks CLI, a command-line interface utility that enables you to work with Databricks.
canonical_url: https://docs.databricks.com/aws/en/dev-tools/cli/
---

# Databricks CLI

> [!NOTE]
>
> Databricks CLI use is subject to the [Databricks License](https://github.com/databricks/cli?tab=License-1-ov-file#readme) and [Databricks Privacy Notice](https://www.databricks.com/legal/privacynotice), including any Usage Data provisions.

The [Databricks CLI](https://github.com/databricks/cli) (command-line interface) allows you to interact with the Databricks platform from your local terminal or automation scripts. You can also run Databricks CLI commands from within a Databricks workspace using web terminal. See [Run shell commands in Databricks web terminal](https://docs.databricks.com/aws/en/compute/web-terminal.md).

To install and configure authentication for the Databricks CLI, see [Install or update the Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/install.md) and [Authentication for the Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/authentication.md).

> [!TIP]
>
> The Databricks CLI source is publicly available in the [databricks/cli GitHub repository](https://github.com/databricks/cli).

To submit and manage GPU training workloads, use the `databricks air` commands. See [Use the Databricks CLI with AI Runtime](https://docs.databricks.com/aws/en/machine-learning/ai-runtime/connecting/cli/index.md).

## How does the Databricks CLI work?

The CLI wraps the Databricks REST API, which provides endpoints for modifying or requesting information about Databricks account and workspace objects. See the [Databricks REST API reference](https://docs.databricks.com/api/).

For example, to print information about an individual cluster in a workspace:

```bash
databricks clusters get 1234-567890-a12bcde3
```

With `curl`, the equivalent operation is as follows:

```bash
curl --request GET "https://${DATABRICKS_HOST}/api/2.0/clusters/get" \
     --header "Authorization: Bearer ${DATABRICKS_TOKEN}" \
     --data '{ "cluster_id": "1234-567890-a12bcde3" }'
```

## <a id="versions" />Databricks CLI version release types

The [release type](https://docs.databricks.com/aws/en/release-notes/release-types.md) of the Databricks CLI corresponds to the version:

* Versions 1.0.0 and above are generally available (GA).
* Versions 0.205 through 0.299 are Public Preview.
* Versions 0.18 and below are legacy CLI.

### Legacy CLI

The legacy Databricks CLI is versions 0.18 and below.

* Databricks plans no support or new feature work for the legacy Databricks CLI.
* For more information about the legacy Databricks CLI, see [Legacy Databricks CLI](https://docs.databricks.com/aws/en/archive/dev-tools/cli/index.md).
* To migrate from Databricks CLI version 0.18 or below to Databricks CLI version 0.205 or above, see [Databricks CLI migration](https://docs.databricks.com/aws/en/dev-tools/cli/migrate.md).

## Next steps

* To install the CLI and configure authentication to quickly get started, see [Databricks CLI tutorial](https://docs.databricks.com/aws/en/dev-tools/cli/tutorial.md).
* To skip the tutorial and just install the CLI, see [Install or update the Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/install.md).
* To learn about all available authentication types between the CLI and your Databricks accounts and workspaces, see [Authentication for the Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/authentication.md).
* To use configuration profiles to quickly switch between related groups of CLI settings, see [Configuration profiles for the Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/profiles.md).
* To learn about basic usage for the CLI, see [Basic usage for the Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/usage.md).
* For a list of all available CLI commands, see [Databricks CLI commands](https://docs.databricks.com/aws/en/dev-tools/cli/commands.md).
