scwtui
Warning
Not an official Scaleway project, use at your own risk.
scwtui is a terminal user interface for Scaleway powered by bubbletea.
It allows you to view all the resources in your Scaleway account and perform basic operations on them.
Running
The easiest way to run scwtui is to use Docker.
docker run -it --rm -v "$HOME/.config/scw:/root/.config/scw" cyclimse/scwtui:0.1.1
You can also provide your Scaleway credentials using environment variables. See the scaleway-cli documentation for more information.
Keybindings
| Keybinding |
Description |
esc, ctrl+c |
Quit |
\ |
Search |
d |
Describe selected resource |
x |
Delete selected resource |
l |
View Cockpit logs for selected resource |
Features
Search
The search is powered by bleve.
You can use fields to search for specific resources. For example, to search for all resources in the fr-par region, you can use region:fr-par.
Describe
You can view the details of a resource by pressing d when it is selected. This will show all the details of the resource as a JSON object.
Delete
You can delete a resource by pressing x when it is selected. This will prompt you to confirm the deletion of the resource.
Logs
Note
This feature is only available for resources integrated with Cockpit.
You can view the logs for a resource by pressing l when it is selected. This will open a new window with the logs for the resource.
This feature relies on the Cockpit Loki API. It will generate a token for each project to allow you to view the logs of the resources in the project. As such, you will need to provide the ObservabilityFullAccess permission set to your API token.
Supported Resources
| Resource |
List |
Describe |
Delete |
Logs |
| Serverless Function |
✅ |
✅ |
✅ |
✅ |
| Serverless Container |
✅ |
✅ |
✅ |
✅ |
| Registry Namespace |
✅ |
✅ |
✅ |
❌ |
| RDB Instance |
✅ |
✅ |
✅ |
✅ |
Troubleshooting
IAM Permissions
If you're using an IAM scoped token, you will need to provide the ProjectReadyOnly permission set to your API token. This is needed to retrieve the projects in your account, so that all resources can be listed.
In addition, you will need read permissions for all the products you want to use with scwtui. For instance, if you want to use this tool with all products, you can use the AllProductsReadOnly permission set.