Skip to content

Commit

Permalink
Remove mentions of Cody CLI support for Free and Pro (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaedahBatool authored Feb 20, 2025
1 parent 11945d2 commit 8acdd07
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions docs/cody/clients/install-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@

<p className="subtitle">Learn how to install the <code>cody</code> command-line tool and using the <code>cody chat</code> subcommand.</p>

<Callout type="note" title="Experimental">
Cody CLI support is in the experimental stage.
<Callout type="note">
Cody CLI support is in the Experimental stage for Enterprise accounts.
</Callout>

Cody CLI is the same technology that powers the Cody IDE plugins but available from the command-line.
Use Cody CLI for ad-hoc exploration in your terminal or as part of scripts to automate your workflows.

Cody CLI is available to Free, Pro, and Enterprise customers.

<LinkCards>
<LinkCard href="https://www.npmjs.com/package/@sourcegraph/cody" imgSrc="https://storage.googleapis.com/sourcegraph-assets/docs/images/cody/command-line-blue.svg" imgAlt="Cody CLI" title="Cody CLI" description="Install Cody's free command-line interface from npm" />
<LinkCard href="https://www.npmjs.com/package/@sourcegraph/cody" imgSrc="https://storage.googleapis.com/sourcegraph-assets/docs/images/cody/command-line-blue.svg" imgAlt="Cody CLI" title="Cody CLI" description="Install Cody's command-line interface from npm" />
</LinkCards>

## Prerequisites
Expand Down Expand Up @@ -91,8 +89,9 @@ This will open a browser window where you can authenticate with your Sourcegraph
Close the browser tab after authentication is complete.
</Tab>
<Tab title="Command Line">
- For Cody Pro/Free accounts, create an access token at https://sourcegraph.com/user/settings/tokens.
- For Cody Enterprise accounts, sign into your Sourcegraph Enterprise account and create an access token under `Account > Settings > Access Tokens`.

- Cody Enterprise accounts can sign into their Sourcegraph Enterprise account and create an access token under `Account > Settings > Access Tokens`.
-
```shell
export SRC_ENDPOINT=ENDPOINT
export SRC_ACCESS_TOKEN=ACCESS_TOKEN
Expand All @@ -114,7 +113,6 @@ cody auth whoami

**Skip this step if you have already authenticated with the `cody auth login` command.**


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`.

<Tabs>
Expand All @@ -132,7 +130,7 @@ $env:SRC_ACCESS_TOKEN = "ACCESS_TOKEN"
</Tab>
</Tabs>

It's recommended to store these access tokens in a secure location.
It's recommended to store these access tokens in a secure location.
For example, you can store them with a password manager like [1Password](https://1password.com/) or [Bitwarden](https://bitwarden.com/).

It is not recommended to export these variables in your shell startup script because it will expose your access token to all commands you run from the terminal. Instead, consider sourcing these environment variables on-demand when you need to authenticate with the Cody CLI.
Expand Down Expand Up @@ -209,6 +207,3 @@ Use the `-` trailing argument as an alternative to `--stdin` to read the diff fr
```shell
git diff | cody chat -m 'Write a commit message for this diff' -
```



0 comments on commit 8acdd07

Please sign in to comment.