# scw-install

Installs the Scaleway CLI (scw) binary from GitHub releases on macOS, Linux, or Windows, for people setting up scw.

Skill by Scaleway. Category: Knowledge.

## Install

Project (for this project only):

```sh
npx skills add scaleway/scaleway-skills --skill scw-install
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx skills add scaleway/scaleway-skills --skill scw-install -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.

## Security audits

- Gen Agent Trust Hub: Pass
- Socket: Pass
- Snyk: Warn

Installs: 6. Installs counted by skills.sh. [Open on skills.sh](https://www.skills.sh/scaleway/scaleway-skills/scw-install)

## Source

[Open the source](https://github.com/scaleway/scaleway-skills/tree/HEAD/skills/scw-install). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

## SKILL.md

````markdown
---
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](https://github.com/scaleway/scaleway-cli/releases).

## 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:

```bash
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:**

```bash
# 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):**

```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
````

- Previous: [playwright-best-practices-for-agents](https://syn4pse.dev/terminal/checkly-playwright-best-practices-for-agents.md)
- Next: [instances](https://syn4pse.dev/terminal/koyeb-instances.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
