You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Explain the changes introduced in your PR -->
A couple customers are getting confused and using both env vars and cody
auth login to authenticate with the CLI leading to undesirable effects.
This change adds emphasis for customers getting started with CLI
## Pull Request approval
You will need to get your PR approved by at least one member of the
Sourcegraph team. For reviews of docs formatting, styles, and component
usage, please tag the docs team via the #docs Slack channel.
Copy file name to clipboardExpand all lines: docs/cody/clients/install-cli.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,8 +98,8 @@ export SRC_ENDPOINT=ENDPOINT
98
98
export SRC_ACCESS_TOKEN=ACCESS_TOKEN
99
99
cody auth login # stores the access token securely
100
100
```
101
-
You don't need to export `SRC_ENDPOINT` or `SRC_ACCESS_TOKEN` after running `cody auth login`.
102
-
Subsequent command invocation will use the stored access token.
101
+
<Callouttype="info">You don't need to export `SRC_ENDPOINT` or `SRC_ACCESS_TOKEN` after running `cody auth login`.
102
+
Subsequent command invocation will use the stored access token.</Callout>
103
103
</Tab>
104
104
</Tabs>
105
105
@@ -112,7 +112,8 @@ cody auth whoami
112
112
113
113
## Authenticate with only environment variables
114
114
115
-
Skip this step if you have already authenticated with the `cody auth login` command.
115
+
**Skip this step if you have already authenticated with the `cody auth login` command.**
116
+
116
117
117
118
If you prefer not to let Cody CLI store your access token, you can also pass the endpoint URL and access token through the environment variables `SRC_ENDPOINT` and `SRC_ACCESS_TOKEN`.
0 commit comments