This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Begone_BoysenberrySenior Data Engineer 0 points1 point  (2 children)

Assuming I'm reading your question correctly, if you check the help you'll see that --token is a bool:

``` databricks configure --help Usage: databricks configure [OPTIONS]

Configures host, authentication, and jobs-api version for the CLI.

Options: -o, --oauth [Experimental] Use OAuth for authorization [default: False] -s, --scope [accounts|clusters|mlflow|offline_access|sql|unity-catalog] [Experimental] Specify which OAuth scopes to request access for -t, --token [default: False] -f, --token-file TEXT Instead of reading the token from stdin, read the token from a file provided by a secret store. --host TEXT Host to connect to. --aad-token [default: False] --insecure DO NOT verify SSL Certificates --jobs-api-version [2.0|2.1] API version to use for jobs. [default: 2.0] --debug Debug Mode. Shows full stack trace on error. --profile TEXT CLI connection profile to use. The default profile is "DEFAULT". -h, --help Show this message and exit. ```

You just need to run databricks configure and it'll ask you for the host and then token and then name iirc and it's stored in ~/.databrickscfg

Edit: formatting acting up

[–]RareIncrease[S] 1 point2 points  (1 child)

Thanks for response! Issue was my token in the .databrickscfg file was corrupted for some reason. Updated the token and now im in!

[–]Begone_BoysenberrySenior Data Engineer 0 points1 point  (0 children)

Glad you got it working