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):
databricks secrets create-scope --scope wandb
# without security add-on
databricks secrets create-scope --scope wandb --initial-manage-principal users
# Add your api_key from: https://app.wandb.ai/authorize
databricks secrets put --scope wandb --key api_key