Skip to content

Sets up the Databricks CLI in your GitHub Actions workflow.

License

Notifications You must be signed in to change notification settings

nexr/setup-cli

 
 

Repository files navigation

setup-cli

setup-cli makes it easy to install the Databricks CLI in your environment.

It provides a composite GitHub Action and a portable installation script that can be used in most CI/CD systems and development environments.

Full documentation about installation can be found at:

Usage

This repository contains an install.sh script that can be invoked to install the Databricks CLI.

To install the latest version, run the following command:

curl -fsSL https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh | sh

To install a specific version, you can replace main with a specific release tag:

curl -fsSL https://raw.githubusercontent.com/databricks/setup-cli/v0.221.1/install.sh | sh

GitHub Actions

This repository can be used from GitHub Actions.

For a complete example of how to use the Databricks CLI in a GitHub Actions workflow, see the following guide:

To always use the latest version of the Databricks CLI, use the action from the main branch:

- uses: databricks/setup-cli@main

In case you need to use a specific version of the Databricks CLI, use the action from a release tag:

- uses: databricks/setup-cli@v0.221.1

Replace the tag with the version you want to use.

Alternatively, you can specify the version as a parameter to the action:

- uses: databricks/setup-cli@main
  with:
    version: 0.221.1

Preview notice

Please note that the Databricks CLI is in public preview as defined on https://docs.databricks.com/en/release-notes/release-types.html. This means that it has medium-to-high maturity and can be used in production.

About

Sets up the Databricks CLI in your GitHub Actions workflow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%