A tool to initialize the Scaleway CLI with a short lived API key using 2 factor authentication.
The tool will ask your email, password, token, organization and the duration of the API Key. All parameters except password and token can be provided as parameters.
As a prerequisite you will first need to install the Scaleway CLI. To run download a binary found under releases.
$ ./scw-2fa-init -h
Usage of ./scw-2fa-init:
-duration int
Duration for the API key (in hours, max 8)
-email string
Email for the scaleway client
-org string
Organization for the scaleway client