cache command group
Databricks CLI use is subject to the Databricks License and Databricks Privacy Notice, including any Usage Data provisions.
The cache command group within the Databricks CLI manages the local cache used by the Databricks CLI for improved performance.
databricks cache clear
Remove all cached files stored locally by the Databricks CLI.
This clears the cache for all CLI versions, not just the current version. The cache directory is typically located at:
- Linux/macOS:
~/.cache/databricks/ - Windows:
%LOCALAPPDATA%\databricks\
You can override this with the DATABRICKS_CACHE_DIR environment variable.
databricks cache clear [flags]
Options
Global flags
--debug
Whether to enable debug logging.
-h or --help
Display help for the Databricks CLI or the related command group or the related command.
--log-file string
A string representing the file to write output logs to. If this flag is not specified then the default is to write output logs to stderr.
--log-format format
The log format type, text or json. The default value is text.
--log-level string
A string representing the log format level. If not specified then the log format level is disabled.
-o, --output type
The command output type, text or json. The default value is text.
-p, --profile string
The name of the profile in the ~/.databrickscfg file to use to run the command. If this flag is not specified then if it exists, the profile named DEFAULT is used.
--progress-format format
The format to display progress logs: default, append, inplace, or json
-t, --target string
If applicable, the bundle target to use