| name | scw-install |
| description | How to download and install the Scaleway CLI (scw) from GitHub releases on Windows, macOS, and Linux. Use this skill whenever the user wants to install scw, set up the Scaleway CLI, or needs help getting the binary for their platform. |
Scaleway CLI Installer
This skill downloads and installs the Scaleway CLI (scw) binary directly from the GitHub releases page.
Installation Steps
1. Detect the user's platform
Check the operating system and architecture:
- macOS:
uname -s returns Darwin, check uname -m for arm64 (Apple Silicon) or x86_64 (Intel)
- Linux:
uname -s returns Linux, check uname -m for architecture
- Windows: Check if running on Windows (PowerShell:
$env:OS, or check for Windows_NT)
2. Fetch the latest release
Query the GitHub API to get the latest release:
curl -s https://api.github.com/repos/scaleway/scaleway-cli/releases/latest
Parse the JSON response to extract:
- The
tag_name (version)
- The appropriate download URL based on platform
3. Download URL patterns
The release artifacts are direct binaries (not archives) with this naming pattern:
- macOS Apple Silicon:
scaleway-cli_<version>_darwin_arm64
- macOS Intel (x86_64):
scaleway-cli_<version>_darwin_amd64
- Linux x86_64:
scaleway-cli_<version>_linux_amd64
- Linux ARM64:
scaleway-cli_<version>_linux_arm64
- Windows x86_64:
scaleway-cli_<version>_windows_amd64.exe
- Windows ARM64:
scaleway-cli_<version>_windows_arm64.exe
To get the download URL, find the asset in the release JSON and use its browser_download_url.
4. Download and install
macOS/Linux:
curl -L -o scw "<download_url>"
chmod +x scw
sudo mv scw /usr/local/bin/
Windows (PowerShell):
# Download the binary
Invoke-WebRequest -Uri "<download_url>" -OutFile "$env:TEMP\scw.exe"
# Move to a directory in PATH (e.g., C:\Program Files\scw or user's bin)
Move-Item -Path "$env:TEMP\scw.exe" -Destination "$env:USERPROFILE\bin\scw.exe" -Force
5. Verify installation
Run scw version to confirm the installation was successful.
Notes
- Always use the latest release unless the user specifies a version
- Ensure the download directory is cleaned up after installation
- On macOS/Linux, if the user doesn't have sudo access, install to
~/bin and remind them to add it to PATH
- On Windows, ensure the destination folder is in the PATH