Documentation for scw config

February 24, 2026 ยท View on GitHub

Config management engine is common across all Scaleway developer tools (CLI, terraform, SDK, ... ). It allows to handle Scaleway config through two ways: environment variables and/or config file. Default path for configuration file is based on the following priority order:

  • $SCW_CONFIG_PATH
  • $XDG_CONFIG_HOME/scw/config.yaml
  • $HOME/.config/scw/config.yaml
  • $USERPROFILE/.config/scw/config.yaml

In this CLI, environment variables have priority over the configuration file.

The following environment variables are supported:

Environment VariableDescription
SCW_ACCESS_KEYThe access key of a token (create a token at https://console.scaleway.com/iam/api-keys)
SCW_SECRET_KEYThe secret key of a token (create a token at https://console.scaleway.com/iam/api-keys)
SCW_DEFAULT_ORGANIZATION_IDThe default organization ID (get your organization ID at https://console.scaleway.com/iam/api-keys)
SCW_DEFAULT_PROJECT_IDThe default project ID (get your project ID at https://console.scaleway.com/iam/api-keys)
SCW_DEFAULT_REGIONThe default region
SCW_DEFAULT_ZONEThe default availability zone
SCW_API_URLURL of the API
SCW_INSECURESet this to true to enable the insecure mode
SCW_PROFILESet the config profile to use

Read more about the config management engine at https://github.com/scaleway/scaleway-sdk-go/tree/master/scw#scaleway-config

Destroy the config file

Usage:

scw config destroy

Dump the config file

Usage:

scw config dump

Edit the configuration file

Edit the configuration file with the default editor

Edit the configuration file with the default editor

Usage:

scw config edit

Get a value from the config file

Usage:

scw config get <key ...> [arg=value ...]

Args:

NameDescription
keyRequired
One of: access-key, secret-key, api-url, insecure, default-organization-id, default-project-id, default-region, default-zone, send-telemetry
the key to get from the config

Examples:

Get the default organization ID

scw config get default_organization_id

Get the default region of the profile 'prod'

scw -p prod config get default_region

Import configurations from another file

Usage:

scw config import <file ...> [arg=value ...]

Args:

NameDescription
fileRequiredPath to the configuration file to import

Get config values from the config file for the current profile

Usage:

scw config info

Examples:

Get the default config values

scw config info

Get the config values of the profile 'prod'

scw -p prod config info

Allows the activation and deletion of a profile from the config file

Mark a profile as active in the config file

Usage:

scw config profile activate <profile-name ...> [arg=value ...]

Args:

NameDescription
profile-nameRequired

Delete a profile from the config file

Usage:

scw config profile delete <name ...> [arg=value ...]

Args:

NameDescription
nameRequired

List all profiles in the config file

Usage:

scw config profile list

Reset the config

Usage:

scw config reset

Set a line from the config file

This commands overwrites the configuration file parameters with user input. The only allowed attributes are access_key, secret_key, default_organization_id, default_region, default_zone, api_url, insecure

This commands overwrites the configuration file parameters with user input. The only allowed attributes are access_key, secret_key, default_organization_id, default_region, default_zone, api_url, insecure

Usage:

scw config set [arg=value ...]

Args:

NameDescription
access-keyA Scaleway access key
secret-keyA Scaleway secret key
api-urlScaleway API URL
insecureSet to true to allow insecure HTTPS connections
default-organization-idA default Scaleway organization id
default-project-idA default Scaleway project id
default-regionOne of: fr-par, nl-ams, pl-waw, it-milA default Scaleway region
default-zoneOne of: fr-par-1, fr-par-2, fr-par-3, nl-ams-1, nl-ams-2, nl-ams-3, pl-waw-1, pl-waw-2, pl-waw-3, it-mil-1A default Scaleway zone
send-telemetrySet to false to disable telemetry

Examples:

Update the default organization ID

scw config set default_organization_id=12903058-d0e8-4366-89c3-6e666abe1f6f

Update the default region of the profile 'prod'

scw -p prod config set default_region=nl-ams

Unset a line from the config file

Usage:

scw config unset <key ...> [arg=value ...]

Args:

NameDescription
keyRequired
One of: access-key, secret-key, api-url, insecure, default-organization-id, default-project-id, default-region, default-zone, send-telemetry
the config config key name to unset

Validate the config

This command validates the configuration of your Scaleway CLI tool.

It performs the following checks:

- YAML syntax correctness: It checks whether your config file is a valid YAML file.
- Field validity: It checks whether the fields present in the config file are valid and expected fields. This includes fields like AccessKey, SecretKey, DefaultOrganizationID, DefaultProjectID, DefaultRegion, DefaultZone, and APIURL.
- Field values: For each of the fields mentioned above, it checks whether the value assigned to it is valid. For example, it checks if the AccessKey and SecretKey are non-empty and meet the format expectations.

The command goes through each profile present in the config file and validates it.

This command validates the configuration of your Scaleway CLI tool.

It performs the following checks:

- YAML syntax correctness: It checks whether your config file is a valid YAML file.
- Field validity: It checks whether the fields present in the config file are valid and expected fields. This includes fields like AccessKey, SecretKey, DefaultOrganizationID, DefaultProjectID, DefaultRegion, DefaultZone, and APIURL.
- Field values: For each of the fields mentioned above, it checks whether the value assigned to it is valid. For example, it checks if the AccessKey and SecretKey are non-empty and meet the format expectations.

The command goes through each profile present in the config file and validates it.

Usage:

scw config validate