# install databricks cli
pip install databricks-cli
# Generate a token from databricks UI
databricks configure --token
# Create a scope with one of the two commands (depending if you have security features enabled on databricks):
# with security add-on
databricks secrets create-scope --scope wandb
# without security add-on
databricks secrets create-scope --scope wandb --initial-manage-principal users
# Create an API key at https://wandb.ai/settings
databricks secrets put --scope wandb --key api_key