Databricks — CLI and SDK authentication
databricks/api · version 1
envs add databricks/api
This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.
| Key | Needed | Kind | Notes |
|---|---|---|---|
DATABRICKS_HOST |
required | config | Your workspace or the account console. An address.. where to get it |
DATABRICKS_ACCOUNT_ID |
optional | config | Needed for account-level rather than workspace-level work. An identifier.. where to get it |
DATABRICKS_CLIENT_ID |
optional | secret | A service principal, half of an OAuth pair. Databricks does not separate it as publishable.. where to get it |
DATABRICKS_CLIENT_SECRET |
optional | secret | Shown only once. Its scopes are fixed at creation and cannot be changed, so narrowing them means generating another.. where to get it |
DATABRICKS_TOKEN |
optional | secret | The older personal access token. Databricks says to save it securely and not share it, and revokes one automatically after ninety days unused.. where to get it |