Using File Storage with the Scaleway CLI
This page contains basic commands to manage your file systems using the Scaleway CLI.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Installed and configured the Scaleway CLI
Creating a file system
The following command allows you to create a file system:
scw file filesystem create name=<NAME> size=<SIZE_IN_BYTES>Listing your file systems
The following command allows you to list file systems present in your Organization:
scw file filesystem listGetting details on a file system
The following command allows you to get information about a given file system:
scw file filesystem get <FILE_SYSTEM_ID>Updating a file system
The following command allows you to modify the settings of a file system:
scw file filesystem update <FILE_SYSTEM_ID>Attaching a file system to an Instance
The following command allows you to attach a file system to an Instance:
scw instance server attach-filesystem server-id=<INSTANCE_ID> filesystem-id=<FILESYSTEM_ID>Once your file system is attached to the desired Instance, you must mount it from within the Instance to use it. Refer to the dedicated documentation for more information.
Detaching a file system from an Instance
The following command allows you to detach a file system from an Instance:
scw instance server detach-filesystem server-id=<INSTANCE_ID> filesystem-id=<FILESYSTEM_ID>Deleting a file system
The following command allows you to delete a given file system:
scw file filesystem delete <FILE_SYSTEM_ID>For comprehensive information on the different CLI commands to interact with Scaleway File Storage (including the different arguments for each command), refer to the dedicated Scaleway CLI documentation.