# Scaleway CLI
> Manage Scaleway cloud resources from the terminal

## Summary
Official Scaleway CLI (scw) for managing European cloud infrastructure including instances, Kubernetes, serverless, databases, and object storage from the terminal.

## Capabilities
- Create and manage cloud instances and bare metal servers
- Manage Kapsule Kubernetes clusters
- Deploy serverless functions and containers
- Provision managed databases (PostgreSQL, MySQL, Redis)
- Manage object storage buckets and DNS records
- Configure VPCs, security groups, and load balancers

## When to Use
- Managing Scaleway cloud infrastructure from the command line
- Deploying applications on European cloud infrastructure
- Scripting Scaleway resource provisioning and management
- Need GDPR-compliant European cloud hosting management

## When NOT to Use
- Not using Scaleway as your cloud provider
- Need multi-cloud infrastructure management
- Prefer infrastructure as code over imperative CLI commands

## Key Flags
- `instance server create`: Create a new cloud instance
- `instance server list`: List all instances
- `k8s cluster create`: Create a Kubernetes (Kapsule) cluster
- `rdb instance create`: Create a managed database instance
- `init`: Initialize the CLI with credentials and defaults
- `-o json`: Output results in JSON format

## Usage Patterns
### Initialize the CLI
```
scw init
```
Interactive setup of credentials, default region, and project

### Create an instance
```
scw instance server create type=DEV1-S image=ubuntu_jammy name=my-server
```
Creates a DEV1-S instance with Ubuntu 22.04

### List all instances as JSON
```
scw instance server list -o json
```
Lists all instances with full details in JSON format

### Create a Kubernetes cluster
```
scw k8s cluster create name=my-cluster version=1.29 cni=cilium
```
Creates a Kapsule cluster with Cilium CNI

## Input / Output
- **stdin**: Accepts interactive input during initialization and confirmations
- **stdout**: Resource listings and operation results in table or JSON format
- **stderr**: Error messages and API errors

## Installation
- **homebrew**: `brew install scw`

## Related Tools
- [hcloud](/tools/hcloud) (alternative): Hetzner Cloud CLI manages a competing European cloud provider
- [vultr-cli](/tools/vultr-cli) (alternative): Vultr CLI manages a different cloud provider with global regions
- [kubectl](/tools/kubectl) (complementary): kubectl manages workloads on Kapsule clusters provisioned by scw

---
Source: https://littlescripts.sh/tools/scaleway-cli
