Personal blog and documentation

@aRkadeFR blog and documentation on system and development

Automate your cloud infrastructure with Scaleway CLI

Install and configure your API token

Go to and configure your credentials. You need to remember your Organization uuid and Token uuid.

The API is then available from, and all data is sent and received as JSON.

A curl example:

$ curl -H "X-Auth-Token: ${SCW_TOKEN}" -H "Content-Type: application/json" -i

Create, test, and destroy a resource

We now want to automatically create, test, and destroy a new Scaleway instance.

$ export SCW_TOKEN="#TOKEN#"
$ curl -H "X-Auth-Token: ${SCW_TOKEN}" -H "Content-Type: application/json" -i
$ curl -H "X-Auth-Token: ${SCW_TOKEN}" -H "Content-Type: application/json"
-X POST -d "{…}"