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
8 changes: 4 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ No dependencies required. Downloads a self-contained executable.
### macOS / Linux

```sh
curl -fsSL https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.sh | sh
curl -fsSL https://github.com/tigrisdata/cli/releases/latest/download/install.sh | sh
```

#### Options
Expand All @@ -50,7 +50,7 @@ curl -fsSL https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install
Example:

```sh
TIGRIS_VERSION=v2.9.0 curl -fsSL https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.sh | sh
TIGRIS_VERSION=v2.9.0 curl -fsSL https://github.com/tigrisdata/cli/releases/latest/download/install.sh | sh
```

#### Uninstall (macOS / Linux)
Expand All @@ -66,7 +66,7 @@ If you used a custom `TIGRIS_INSTALL_DIR`, remove from that directory instead an
### Windows (PowerShell)

```powershell
irm https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.ps1 | iex
irm https://github.com/tigrisdata/cli/releases/latest/download/install.ps1 | iex
```

#### Options
Expand All @@ -79,7 +79,7 @@ irm https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.ps1 |
Example:

```powershell
$env:TIGRIS_VERSION = "v2.9.0"; irm https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.ps1 | iex
$env:TIGRIS_VERSION = "v2.9.0"; irm https://github.com/tigrisdata/cli/releases/latest/download/install.ps1 | iex
```

#### Uninstall (Windows)
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tigris CLI installer for Windows
# Usage: irm https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.ps1 | iex
# Usage: irm https://github.com/tigrisdata/cli/releases/latest/download/install.ps1 | iex
#
# Environment variables:
# TIGRIS_INSTALL_DIR - Installation directory (default: $HOME\.tigris\bin)
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# Tigris CLI installer
# Usage: curl -fsSL https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.sh | sh
# Usage: curl -fsSL https://github.com/tigrisdata/cli/releases/latest/download/install.sh | sh
#
# Environment variables:
# TIGRIS_INSTALL_DIR - Installation directory (default: /usr/local/bin)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/update-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export function getUpdateCommand(): string {
} else if (isHomebrewInstall()) {
return 'brew upgrade tigris';
} else if (isWindows) {
return 'irm https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.ps1 | iex';
return 'irm https://github.com/tigrisdata/cli/releases/latest/download/install.ps1 | iex';
} else {
return 'curl -fsSL https://raw.githubusercontent.com/tigrisdata/cli/main/scripts/install.sh | sh';
return 'curl -fsSL https://github.com/tigrisdata/cli/releases/latest/download/install.sh | sh';
}
}

Expand Down