44#
55# Tiger CLI Installation Script
66#
7- # This script automatically downloads and installs the latest version of Tiger CLI
8- # from S3 releases . It detects your platform (OS and architecture) and downloads
9- # the appropriate binary for your system.
7+ # This script automatically downloads and installs the latest version of Tiger
8+ # CLI from the release server . It detects your platform (OS and architecture)
9+ # and downloads the appropriate binary for your system.
1010#
1111# Usage:
12- # curl -fsSL https://tiger- cli-releases.s3.amazonaws. com/install /install.sh | sh
12+ # curl -fsSL https://cli.tigerdata. com/install.sh | sh
1313#
1414# Environment Variables (all optional):
1515# VERSION - Specific version to install (e.g., "v1.2.3")
@@ -34,9 +34,8 @@ set -eu
3434REPO_NAME=" tiger-cli"
3535BINARY_NAME=" tiger"
3636
37- # S3 Configuration (primary download source)
38- S3_BUCKET=" tiger-cli-releases"
39- S3_BASE_URL=" https://${S3_BUCKET} .s3.amazonaws.com"
37+ # Download URL
38+ DOWNLOAD_BASE_URL=" https://cli.tigerdata.com"
4039
4140# Colors for output
4241RED=' \033[0;31m'
@@ -175,7 +174,7 @@ download_with_retry() {
175174 done
176175}
177176
178- # Get version (from VERSION env var or latest from S3 )
177+ # Get version (from VERSION env var or latest from CloudFront )
179178get_version () {
180179 # Use VERSION env var if provided
181180 if [ -n " ${VERSION:- } " ]; then
@@ -184,9 +183,9 @@ get_version() {
184183 return
185184 fi
186185
187- local url=" ${S3_BASE_URL} /install /latest.txt"
186+ local url=" ${DOWNLOAD_BASE_URL} /latest.txt"
188187
189- # Try to get version from S3 latest.txt file at bucket root
188+ # Try to get version from latest.txt file
190189 local version
191190 version=$( fetch_with_retry " ${url} " " latest version" )
192191
@@ -286,7 +285,7 @@ verify_checksum() {
286285 local tmp_dir=" $3 "
287286
288287 # Construct individual checksum file URL
289- local checksum_url=" ${S3_BASE_URL } /releases/${version} /${filename} .sha256"
288+ local checksum_url=" ${DOWNLOAD_BASE_URL } /releases/${version} /${filename} .sha256"
290289 local checksum_file=" ${tmp_dir} /${filename} .sha256"
291290
292291 # Download checksum file with retry logic
@@ -327,8 +326,8 @@ download_archive() {
327326 local tmp_dir=" $3 "
328327 local platform=" $4 "
329328
330- # Construct S3 download URL
331- local download_url=" ${S3_BASE_URL } /releases/${version} /${archive_name} "
329+ # Construct download URL
330+ local download_url=" ${DOWNLOAD_BASE_URL } /releases/${version} /${archive_name} "
332331
333332 # Download archive with retry logic
334333 download_with_retry " ${download_url} " " ${tmp_dir} /${archive_name} " " Tiger CLI ${version} for ${platform} "
0 commit comments