databricks-cli/CHANGELOG.md

10 KiB

Version changelog

0.200.1

CLI:

  • Add --absolute flag for ls command (#508).
  • Add dbfs scheme prefix to paths in cp command output (#516).
  • Add provider detection to the repos create command (#528).
  • Added configure-cluster flag for auth login (#500).
  • Added prompts for Databricks profile for auth login command (#502).
  • Allow specifying repo by path for repos commands (#526).
  • Decode contents by default in workspace export command (#531).
  • Fixed jobs create command to only accept JSON payload (#498).
  • Make local files default for fs commands (#506).
  • Remove \r from new line print statments (#509).
  • Remove extra call to filer.Stat in dbfs filer.Read (#515).
  • Update alerts command integration test (#512).
  • Update variable regex to support hyphens (#503).

Bundles:

  • Add DATABRICKS_BUNDLE_TMP env variable (#462).
  • Update Terraform provider schema structs (#504).

Dependencies:

  • Bump github.com/databricks/databricks-sdk-go from 0.9.1-0.20230614092458-b5bbc1c8dabb to 0.10.0 (#497).

Internal:

  • Use direct download for workspace filer read (#514).

0.200.0

This version marks the first version available as public preview.

The minor bump to 200 better disambiguates between Databricks CLI "v1" (the Python version) and this version, Databricks CLI "v2". The minor version of 0.100 may look lower than 0.17 to some, whereas 200 does not. This bump has no other significance.

CLI:

  • Add filer.Filer implementation backed by the Files API (#474).
  • Add fs cp command (#463).
  • Correctly set ExactArgs if generated command has positional arguments (#488).
  • Do not use white color as string output (#489).
  • Update README to reflect public preview status (#491).

Bundles:

  • Fix force flag not working for bundle destroy (#434).
  • Fix locker unlock for destroy (#492).
  • Use better error assertions and clean up locker API (#490).

Dependencies:

  • Bump golang.org/x/mod from 0.10.0 to 0.11.0 (#496).
  • Bump golang.org/x/sync from 0.2.0 to 0.3.0 (#495).

0.100.4

CLI:

  • Add workspace import-dir command (#456).
  • Annotate generated commands with OpenAPI package name (#466).
  • Associate generated commands with command groups (#475).
  • Disable shell completions for generated commands (#483).
  • Include [DEFAULT] section header when writing ~/.databrickscfg (#464).
  • Pass through proxy related environment variables (#465).
  • Restore flags to original values on test completion (#470).
  • Update configure command (#482).

Dependencies:

  • Bump SDK to latest (#473).

0.100.3

CLI:

  • Add directory tracking to sync (#425).
  • Add fs cat command for dbfs files (#430).
  • Add fs ls command for dbfs (#429).
  • Add fs mkdirs command for dbfs (#432).
  • Add fs rm command for dbfs (#433).
  • Add installation instructions (#458).
  • Add new line to cmdio JSON rendering (#443).
  • Add profile on databricks auth login (#423).
  • Add readable console logger (#370).
  • Add workspace export-dir command (#449).
  • Added secrets input prompt for secrets put-secret command (#413).
  • Added spinner when loading command prompts (#420).
  • Better error message if can not load prompts (#437).
  • Changed service template to correctly handle required positional arguments (#405).
  • Do not generate prompts for certain commands (#438).
  • Do not prompt for List methods (#411).
  • Do not use FgWhite and FgBlack for terminal output (#435).
  • Skip path translation of job task for jobs with a Git source (#404).
  • Tweak profile prompt (#454).
  • Update with the latest Go SDK (#457).
  • Use cmdio in version command for --output flag (#419).

Bundles:

  • Check for nil environment before accessing it (#453).

Dependencies:

  • Bump github.com/hashicorp/terraform-json from 0.16.0 to 0.17.0 (#459).
  • Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 (#412).

Internal:

  • Add Mkdir and ReadDir functions to filer.Filer interface (#414).
  • Add Stat function to filer.Filer interface (#421).
  • Add check for path is a directory in filer.ReadDir (#426).
  • Add fs.FS adapter for the filer interface (#422).
  • Add implementation of filer.Filer for local filesystem (#460).
  • Allow equivalence checking of filer errors to fs errors (#416).
  • Fix locker integration test (#417).
  • Implement DBFS filer (#139).
  • Include recursive deletion in filer interface (#442).
  • Make filer.Filer return fs.DirEntry from ReadDir (#415).
  • Speed up sync integration tests (#428).

0.100.2

CLI:

  • Reduce parallellism in locker integration test (#407).

Bundles:

  • Don't pass synthesized TMPDIR if not already set (#409).
  • Added support for bundle.Seq, simplified Mutator.Apply interface (#403).
  • Regenerated internal schema structs based on Terraform provider schemas (#401).

0.100.1

CLI:

  • Sync: Gracefully handle broken notebook files (#398).
  • Add version flag to print version and exit (#394).
  • Pass temporary directory environment variables to subprocesses (#395).
  • Rename environment variables BRICKS_ -> DATABRICKS_ (#393).
  • Update to Go SDK v0.9.0 (#396).

0.100.0

This release bumps the minor version to 100 to disambiguate between Databricks CLI "v1" (the Python version) and this version, Databricks CLI "v2". This release is a major rewrite of the CLI, and is not backwards compatible.

CLI:

  • Rename bricks -> databricks (#389).

Bundles:

  • Added ability for deferred mutator execution (#380).
  • Do not truncate local state file when pulling remote changes (#382).

0.0.32

  • Add support for variables in bundle config. Introduces 4 ways of setting variable values, which in decreasing order of priority are: (#383)(#359).
    1. Command line flag. For example: --var="foo=bar"
    2. Environment variable. eg: BUNDLE_VAR_foo=bar
    3. Default value as defined in the applicable environments block
    4. Default value defined in variable definition
  • Make the git details bundle config block optional (#372).
  • Fix api post integration tests (#371).
  • Fix table of content by removing not required top-level item (#366).
  • Fix printing the tasks in job output in DAG execution order (#377).
  • Improved error message when 'bricks bundle run' is executed before 'bricks bundle deploy' (#378).

0.0.31

  • Add OpenAPI command coverage (both workspace and account level APIs).

Bundles

  • Automatically populate a bundle's Git repository details in its configuration tree.

0.0.30

  • Initial preview release of the Databricks CLI.