• Stars
    star
    843
  • Rank 51,878 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created about 9 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command Line Interface for Scaleway

CircleCI GoReportCard

Scaleway CLI (v2)

Scaleway CLI is a tool to help you pilot your Scaleway infrastructure directly from your terminal.

Installation

With a Package Manager (Recommended)

A package manager installs and upgrades the Scaleway CLI with a single command. We recommend this installation mode for more simplicity and reliability:

Homebrew

Install the latest stable release on macOS/Linux using Homebrew:

brew install scw

Arch Linux

Install the latest stable release on Arch Linux from official repositories. For instance with pacman:

pacman -S scaleway-cli

Chocolatey

Install the latest stable release on Windows using Chocolatey (Package):

choco install scaleway-cli

Manually

Released Binaries

We provide static-compiled binaries for darwin (macOS), GNU/Linux, and Windows platforms. You just have to download the binary compatible with your platform to a directory available in your PATH:

Linux

curl -s https://raw.githubusercontent.com/scaleway/scaleway-cli/master/scripts/get.sh | sh

Windows

You can download the last release here: https://github.com/scaleway/scaleway-cli/releases
This official guide explains how to add tools to your PATH.

Docker Image

You can use the CLI as you would run any Docker image:

docker run -i --rm scaleway/cli:latest

See more in-depth information about running the CLI in Docker here

Getting Started

Setup your configuration

After you installed the latest release just run the initialization command and let yourself be guided! πŸ’ƒ

scw init

It will set up your profile, the authentication, and the auto-completion.

Basic commands

# Create an instance server
scw instance server create type=DEV1-S image=ubuntu_focal zone=fr-par-1 tags.0="scw-cli"

# List your servers
scw instance server list

# Create a Kubernetes cluster named foo with cilium as CNI, in version 1.17.4 and with a pool named default composed of 3 DEV1-M and with 2 tags
scw k8s cluster create name=foo version=1.17.4 pools.0.size=3 pools.0.node-type=DEV1-M pools.0.name=default tags.0=tag1 tags.1=tag2

Environment

You can configure your config or enable functionalities with environment variables.

Variables to override config are describe in config documentation. To enable beta features, you can set SCW_ENABLE_BETA=1 in your environment.

Reference documentation

Namespace Description Documentation
account User related data CLI / API
applesilicon Apple silicon API CLI / API
autocomplete Autocomplete related commands CLI
baremetal Baremetal API CLI / API
billing Billing API CLI / API
cockpit Cockpit API CLI / API
config Config file management CLI
container Serverless Container API CLI / API
documentdb DocumentDB API CLI
dns DNS API CLI / API
feedback Send feedback to the Scaleway CLI Team! CLI
flexibleip Flexible IP API CLI / API
function Serverless Function API CLI / API
iam IAM API CLI / API
info Get info about current settings CLI
init Initialize the config CLI
instance Instance API CLI / API
iot IoT API CLI / API
ipam IPAM API CLI / API
k8s Kapsule API CLI / API
lb Load Balancer API CLI / API
marketplace Marketplace API CLI
mnq Messaging and Queueing API CLI / API
object Object-storage utils CLI / API
rdb Database RDB API CLI / API
redis Redis API CLI / API
registry Container registry API CLI / API
secret Secret manager API CLI / API
shell Start Shell mode CLI
tem Transactional Email API CLI / API
vpc-gw VPC Gateway API CLI / API
vpc VPC API CLI / API

Build it yourself

Build Locally

If you have a >= Go 1.13 environment, you can install the HEAD version to test the latest features or to contribute. Note that this development version could include bugs, use tagged releases if you need stability.

go install github.com/scaleway/scaleway-cli/v2/cmd/scw@latest

Dependencies: We only use go Modules with vendoring.

Build with Docker

You can build the scw CLI with Docker. If you have Docker installed, you can run:

docker build -t scaleway/cli .

Once built, you can then use the CLI as you would run any image:

docker run -i --rm scaleway/cli

See more in-depth information about running the CLI in Docker here

Development

This repository is at its early stage and is still in active development. If you are looking for a way to contribute please read CONTRIBUTING.md.

Reach Us

We love feedback. Don't hesitate to open a Github issue or feel free to reach us on Scaleway Slack community, we are waiting for you on #opensource.

More Repositories

1

docker-machine-driver-scaleway

🐳 Scaleway driver for Docker Machine
Go
248
star
2

frontalization

Pytorch deep learning face frontalization model
Python
198
star
3

terraform-provider-scaleway

Terraform Scaleway provider
Go
178
star
4

postal-address

πŸ“― Parse, normalize and render postal addresses.
Python
174
star
5

natasha

Natasha is a fast and scalable, DPDK powered, stateless NAT44 packet processor
C
125
star
6

image-tools

πŸ”© Scripts used to create Images on Scaleway - https://github.com/scaleway-community
Shell
117
star
7

python-scaleway

🐍 Python SDK to query Scaleway APIs.
Python
114
star
8

kernel-tools

🐧 Kernels on Scaleway
Makefile
105
star
9

scaleway-sdk-go

Integrate Scaleway with your Go application
Go
103
star
10

ultraviolet

A monorepo Design System with React components.
TypeScript
95
star
11

netbox-netprod-importer

Poll data from network devices in production and import it into netbox
Roff
94
star
12

c14-cli

[EOL] πŸ’» Manage your C14 Online Cold Storage from Command Line
Go
89
star
13

docs-content

Scaleway Documentation contents
MDX
77
star
14

serverless-scaleway-functions

Plugin for Serverless Framework to allow users to deploy their serverless applications on Scaleway Functions
JavaScript
69
star
15

image-builder

πŸ“ build server images on Scaleway
Dockerfile
66
star
16

scaleway-csi

Container Storage Interface (CSI) Driver for https://www.scaleway.com/block-storage/
Go
56
star
17

scaleway-cloud-controller-manager

Kubernetes Cloud Controller Manager for Scaleway
Go
52
star
18

initrd

πŸ”§ Initrd builder with qemu nbd metadata for Scaleway boot (armhf + x86_64)
Shell
51
star
19

action-scw

Github action to install and use scaleway-cli
TypeScript
49
star
20

netbox2netshot

Inventory synchronization tool between Netbox and Netshot
Rust
43
star
21

serverless-examples

Example projects and patterns for use with Scaleway's serverless products
HCL
42
star
22

python-netboxapi

Python client API for Netbox
Python
30
star
23

scaleway-sdk-js

Integrate Scaleway with your JS application
TypeScript
28
star
24

cert-manager-webhook-scaleway

A Scaleway DNS ACME webhook for cert-manager
Go
27
star
25

taskor

Async queued task library for Go
Go
27
star
26

juju-scaleway

☁️ Scaleway driver for Juju
Python
26
star
27

prometheus-scw-sd

Prometheus Service Discovery for Scaleway
Go
25
star
28

scaleway-operator

Scaleway Operator for Kubernetes
Go
25
star
29

scaleway-sdk-python

Integrate Scaleway with your Python applications
Python
24
star
30

scaleway-lib

scaleway-lib is a set of NPM packages used at Scaleway
TypeScript
22
star
31

crossplane-provider-scaleway

Crossplane Scaleway Provider
Go
16
star
32

serverless-gateway

Serverless API Gateway running on Scaleway
Python
15
star
33

homebrew-scaleway

🍺 `brew tap scaleway/scaleway`
Ruby
11
star
34

packer-plugin-scaleway

Packer plugin for Scaleway Builder
Go
10
star
35

serverless-functions-python

Utilities for testing your Python functions for Scaleway Serverless Functions.
Python
9
star
36

scaleway-form

Build amazing forms with Scaleway-ui and React-final-form πŸš€πŸš€
TypeScript
9
star
37

scaleway-ui-website

Open Source Component Library
TypeScript
8
star
38

scaleway-functions-runtimes

Runtimes for Scaleway Function As A Service Platform
Go
8
star
39

serverless-api-framework-python

Framework for writing serverless APIs in Python, using Scaleway functions and containers.
Python
8
star
40

scaleway-functions-go

Scaleway Functions Go Runtime library
Go
7
star
41

ansible

Ansible Collection for Scaleway
Python
7
star
42

serverless-offline-scaleway

JavaScript
7
star
43

qa

πŸ’” Cloud testing suite
Makefile
6
star
44

serverless-functions-node

Offline testing for Scaleway Serverless Functions
TypeScript
6
star
45

sentry-wrapper

Log exceptions of a non sentry-capable setuptools entrypoint to Sentry
Python
6
star
46

cq-source-scaleway

CloudQuery Provider for Scaleway
Go
5
star
47

python2-secrets

Backport python3.6 secrets to python2
Python
5
star
48

octodns-scaleway

Scaleway provider for octoDNS
Python
5
star
49

terraform-scaleway-vpc-module

Terraform module for configuring a VPC
HCL
5
star
50

action-scw-secret

TypeScript
5
star
51

port-range

🐍 A python module for port-range
Python
4
star
52

helm-charts

Scaleway Helm Charts
Mustache
4
star
53

waypoint-plugin-scaleway

Waypoint provider for Scaleway
Go
4
star
54

design-tokens

JSON design tokens used in Scaleway UI library
4
star
55

serverless-functions-go

Scaleway Serverless Functions (FaaS) framework to increase developer experience, local testing and more
Go
4
star
56

python-dkim

User-friendly interface as well as python bindings for libopendkim.
Python
3
star
57

kernels

Kernel repository used at Scaleway (branch-oriented)
3
star
58

learn-nomad-cluster-setup

Infrastructure configuration to deploy a Nomad cluster on Scaleway
Shell
2
star
59

scaleway-packages

Repository of the RPM packages used in Scaleway Instance Images
2
star
60

demo-scaleway-ansible-baremetal

Scaleday 2019 demo baremetal
Python
2
star
61

tim

TIM is a plugin for testinfra parametrizing tests as described by a yaml file.
Python
1
star
62

snippets

Snippets to use Scaleway services
Python
1
star
63

tutorial-tem-serverless-terraform

HTML
1
star
64

terraform-scaleway-lb-module

HCL
1
star