Skip to content

Commit be532db

Browse files
Refine auth logout help text for review feedback
Clarify shared token cleanup and align the help text with the actual non-interactive and --delete behavior so the public description is less misleading.
1 parent 085d275 commit be532db

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

‎cmd/auth/logout.go‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ will need to run "databricks auth login" to re-authenticate. The profile
5050
remains in the configuration file (~/.databrickscfg by default) unless
5151
you also specify --delete.
5252
53-
This behavior applies only to profiles created with "databricks auth login"
54-
(auth_type set to "databricks-cli"). Profiles that use other authentication
55-
methods, such as personal access tokens or machine-to-machine credentials, do
56-
not store cached OAuth tokens, so there is nothing to clear. If multiple
57-
profiles share the same cached token, the command removes only the selected
58-
profile's cache entry and preserves the shared token.
59-
60-
Command behavior:
53+
This behavior applies only to profiles created with "databricks auth login".
54+
Profiles that use other authentication methods, such as personal access
55+
tokens or machine-to-machine credentials, do not store cached OAuth tokens,
56+
so there is nothing to clear. If multiple profiles share the same cached
57+
token, the command removes only the selected profile's cache entry and
58+
preserves the shared host-based token as long as other profiles still
59+
reference it.
6160
6261
1. If you specify --profile, the command logs out of that profile. In an
6362
interactive terminal, it asks for confirmation unless you also specify
@@ -68,11 +67,10 @@ Command behavior:
6867
account ID. After you select a profile, the command asks for confirmation
6968
unless you also specify --force.
7069
71-
3. If you omit --profile in a non-interactive environment, the command fails
72-
and asks you to specify --profile.
70+
3. In a non-interactive environment, both --profile and --force are required.
7371
74-
4. In a non-interactive environment, use --profile together with --force to
75-
skip confirmation.`,
72+
4. Use --delete to also remove the selected profile from the configuration
73+
file.`,
7674
}
7775

7876
var force bool

0 commit comments

Comments
 (0)