Or if you use ZSH, add the following in your ~/.zshrc:
Code
scw() { docker run -it --rm -v $HOME/.config/scw:/root/.config/scw scaleway/cli:v2.26.0 $@}
Use your ssh-key
In order to use your ssh-key you must mount your .ssh folder
Code
docker run -it --rm -v $HOME/.config/scw:/root/.config/scw -v $HOME/.ssh:/root/.ssh scaleway/cli:v2.26.0 $@
You can then ensure that your ssh key is present in your Scaleway account
Code
scw iam ssh-key init
Autocompletion
You can still use autocompletion while running the CLI in Docker, you just need to modify script generated by the CLI.
For instance, scw autocomplete script shell=bash will return: