databricks-solutions-databricks-config
Installation
SKILL.md
Configure the Databricks profile in ~/.databrickscfg for use with Databricks Connect.
Usage: /databricks-config [profile_name|workspace_host]
Examples:
/databricks-config- Configure DEFAULT profile (interactive)/databricks-config DEFAULT- Configure DEFAULT profile/databricks-config my-workspace- Configure profile named "my-workspace"/databricks-config https://adb-1234567890123456.7.azuredatabricks.net/- Configure using workspace host URL
Task
- Determine the profile and host:
- If a parameter is provided and it starts with
https://, treat it as a workspace host:- Extract profile name from the host (e.g.,
adb-1234567890123456.7.azuredatabricks.net→adb-1234567890123456,my-company-dev.cloud.databricks.com→my-company-dev) - Use this as the profile name and configure it with the provided host
- Extract profile name from the host (e.g.,
- If a parameter is provided and it doesn't start with
https://, treat it as a profile name - If no parameter is provided, ask the user which profile they want to configure (default: DEFAULT)
- If a parameter is provided and it starts with