Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ npm install -g @google/gemini-cli

#### Install globally with Homebrew (macOS/Linux)

> **Note:** The `gemini-cli` formula is deprecated in `homebrew-core`. For the
> most up-to-date version, use npm or another method above.

```bash
brew install gemini-cli
```
Expand Down
4 changes: 4 additions & 0 deletions docs/get-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ installation methods. Note that Gemini CLI comes pre-installed on
</TabItem>
<TabItem label="Homebrew (macOS/Linux)">

:::caution
The `gemini-cli` formula is deprecated in `homebrew-core`. For the most up-to-date version, use npm or another installation method.
:::

Install globally with Homebrew:

```bash
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/utils/installationInfo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ describe('getInstallationInfo', () => {
expect(info.packageManager).toBe(PackageManager.HOMEBREW);
expect(info.isGlobal).toBe(true);
expect(info.updateMessage).toBe(
'Installed via Homebrew. Please update with "brew upgrade gemini-cli".',
'Installed via Homebrew (deprecated in homebrew-core). ' +
'For the latest version, migrate to npm: npm install -g @google/gemini-cli',
);
});

Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/utils/installationInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export function getInstallationInfo(
packageManager: PackageManager.HOMEBREW,
isGlobal: true,
updateMessage:
'Installed via Homebrew. Please update with "brew upgrade gemini-cli".',
'Installed via Homebrew (deprecated in homebrew-core). ' +
'For the latest version, migrate to npm: npm install -g @google/gemini-cli',
};
}
} catch {
Expand Down
Loading