Terminal
Terminal/Skill
Installs the Scaleway CLI (scw) binary from GitHub releases on macOS, Linux, or Windows, for people setting up scw.
By Scaleway
Works with
npx skills add scaleway/scaleway-skills --skill scw-installThis skill downloads and installs the Scaleway CLI (scw) binary directly from the GitHub releases page.
Check the operating system and architecture:
uname -s returns Darwin, check uname -m for arm64 (Apple Silicon) or x86_64 (Intel)uname -s returns Linux, check uname -m for architecture$env:OS, or check for Windows_NT)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:
tag_name (version)The release artifacts are direct binaries (not archives) with this naming pattern:
scaleway-cli_<version>_darwin_arm64scaleway-cli_<version>_darwin_amd64scaleway-cli_<version>_linux_amd64scaleway-cli_<version>_linux_arm64scaleway-cli_<version>_windows_amd64.exescaleway-cli_<version>_windows_arm64.exeTo get the download URL, find the asset in the release JSON and use its browser_download_url.
macOS/Linux:
# Download the binary
curl -L -o scw "<download_url>"
# Make it executable
chmod +x scw
# Move to /usr/local/bin (or ~/bin if no sudo)
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
Run scw version to confirm the installation was successful.
~/bin and remind them to add it to PATH