Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/providers/agy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export class AgyProvider implements ProviderAdapter {
}

installCommand(os: 'linux' | 'macos' | 'windows'): string {
return 'npm install -g @google/antigravity-cli';
if (os === 'windows') {
return 'powershell -Command "irm https://antigravity.google/cli/install.ps1 | iex"';
}
return 'curl -fsSL https://antigravity.google/cli/install.sh | bash';
}

updateCommand(): string {
Expand Down
4 changes: 3 additions & 1 deletion tests/providers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,9 @@ describe('AgyProvider', () => {
});

it('builds installCommand', () => {
expect(p.installCommand('linux')).toBe('npm install -g @google/antigravity-cli');
expect(p.installCommand('linux')).toBe('curl -fsSL https://antigravity.google/cli/install.sh | bash');
expect(p.installCommand('macos')).toBe('curl -fsSL https://antigravity.google/cli/install.sh | bash');
expect(p.installCommand('windows')).toBe('powershell -Command "irm https://antigravity.google/cli/install.ps1 | iex"');
});

it('builds updateCommand', () => {
Expand Down
Loading