You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: storage/object/api-cli/managing-lifecycle-cliv2.mdx
+36-33Lines changed: 36 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ categories:
14
14
- object-storage
15
15
---
16
16
17
-
[Scaleway Object Storage](/storage/object/concepts/#object-storage) is a service based on the Amazon S3 protocol. It allows you to store different types of objects (documents, images, videos, etc.) and distribute them instantly, anywhere in the world. You can create and manage your Object Storage resources from the [console](https://console.scaleway.com/login), or via the [Scaleway Command Line Interface](/developer-tools/scaleway-cli/quickstart/) that uses external tools such as `rclone`, `s3cmd` and `mc`.
17
+
[Scaleway Object Storage](/storage/object/concepts/#object-storage) is a service based on the Amazon S3 protocol. It allows you to store different types of objects (documents, images, videos, etc.) and distribute them instantly, anywhere in the world. You can create and manage your Object Storage resources from the [console](https://console.scaleway.com/login), or via the [Scaleway Command Line Interface](/developer-tools/scaleway-cli/quickstart/) that uses external tools such as [S3cmd](https://github.com/s3tools/s3cmd), [Rclone](https://rclone.org/downloads/) or [MinIO Client (mc)](https://github.com/minio/mc).
18
18
19
19
## Scaleway Command Line Interface Overview
20
20
@@ -27,14 +27,11 @@ categories:
27
27
- A valid [API key](/identity-and-access-management/iam/how-to/create-api-keys/)
28
28
- An [Object Storage bucket](/storage/object/how-to/create-a-bucket/)
29
29
- Installed and initialized the [Scaleway CLI](/developer-tools/scaleway-cli/quickstart/)
30
-
- Downloaded [S3cmd](https://github.com/s3tools/s3cmd), [rclone](https://rclone.org/downloads/) and [mc](https://github.com/minio/mc)
30
+
- Downloaded [S3cmd](https://github.com/s3tools/s3cmd), [Rclone](https://rclone.org/downloads/) and [MinIO Client (mc)](https://github.com/minio/mc)
31
31
32
+
## Previewing an Object Storage configuration file for the Scaleway CLI
32
33
33
-
## Creating an Object Storage configuration file for the Scaleway CLI
34
-
35
-
<Messagetype="important">
36
-
Unless you add a region argument to your commands, the configuration file will be set for the default region.
37
-
</Message>
34
+
The `scw object config get` command allows you to output the content of the configuration file in a terminal and preview the different fields.
38
35
39
36
<Messagetype="note">
40
37
For more information about generating a configuration file, type the following command in your terminal:
@@ -43,16 +40,13 @@ categories:
43
40
```
44
41
</Message>
45
42
46
-
### Configuration file for Rclone
47
-
48
-
Run the following command in a terminal to create a configuration file with `rclone`:
49
-
43
+
<Tabs>
44
+
<TabsTablabel="Rclone">
45
+
Run the following command in a terminal to preview the configuration file for Rclone:
50
46
```
51
47
scw object config get type=rclone
52
48
```
53
-
54
49
An output similar to the following displays:
55
-
56
50
```
57
51
# Generated by scaleway-cli command
58
52
# Configuration file for rclone https://rclone.org/s3/#scaleway
@@ -70,10 +64,9 @@ Run the following command in a terminal to create a configuration file with `rcl
70
64
server_side_encryption =
71
65
storage_class =
72
66
```
73
-
74
-
### Configuration file for s3cmd
75
-
76
-
Run the following command in a terminal to create a configuration file with `s3cmd`:
67
+
</TabsTab>
68
+
<TabsTablabel="S3cmd">
69
+
Run the following command in a terminal to preview the configuration file for S3cmd:
77
70
78
71
```
79
72
scw object config get type=s3cmd
@@ -92,48 +85,58 @@ Run the following command in a terminal to create a configuration file with `s3c
92
85
secret_key = 12345678-1234-1234-4321-123456789123
93
86
use_https = True
94
87
```
95
-
96
-
### Configuration file for MinIO Client
97
-
98
-
3. Run the following command in a terminal to create a configuration file with `mc`:
88
+
</TabsTab>
89
+
<TabsTablabel="MinIO Client (mc)">
90
+
Run the following command in a terminal to preview the configuration file for MinIO Client (mc):
## Installing a configuration file for Amazon S3-compatible tools (s3cmd, rclone, and mc)
111
102
112
-
1. Run the following command in a terminal to install a configuration file for `s3cmd`:
103
+
The `scw object config install` allows you to create a configuration file for the selected third party tool based on your [AWS configuration](/storage/object/api-cli/object-storage-aws-cli/).
104
+
105
+
<Messagetype="important">
106
+
Creating a new configuration file using `scw object config install` will overwrite the existing one for the specified third party tool. To update an existing configuration, [generate a preview](#previewing-an-object-storage-configuration-file-for-the-scaleway-cli) and manually edit the configuration file.
107
+
</Message>
108
+
109
+
<Tabs>
110
+
<TabsTablabel="Rclone">
111
+
2. Run the following command in a terminal to install a configuration file for Rclone:
112
+
113
113
```
114
-
scw object config install type=s3cmd
114
+
scw object config install type=rclone
115
115
```
116
116
117
117
An output similar to the following displays:
118
118
119
119
```
120
-
Configuration file successfully installed at /Users/yourusername/.s3cfg.
120
+
Configuration file successfully installed at /Users/yourusername/.config/rclone/rclone.conf.
121
121
```
122
-
2. Run the following command in a terminal to install a configuration file for `rclone`:
123
-
122
+
</TabsTab>
123
+
<TabsTablabel="S3cmd">
124
+
Run the following command in a terminal to install a configuration file for `s3cmd`:
124
125
```
125
-
scw object config install type=rclone
126
+
scw object config install type=s3cmd
126
127
```
127
128
128
129
An output similar to the following displays:
129
130
130
131
```
131
-
Configuration file successfully installed at /Users/yourusername/.config/rclone/rclone.conf.
132
+
Configuration file successfully installed at /Users/yourusername/.s3cfg.
132
133
```
133
-
3. Run the following command in a terminal to install a configuration file for `mc`:
134
+
</TabsTab>
135
+
<TabsTablabel="MinIO Client (mc)">
136
+
3. Run the following command in a terminal to install a configuration file for MinIO Client (mc):
0 commit comments