@@ -42,11 +42,12 @@ Commands:
42
42
delete <entity> Delete access controls from a bucket or file.
43
43
44
44
Options:
45
- --bucket, -b The target storage bucket. [string] [required]
46
- --default, -d Whether to set default access controls. Only valid when setting access controls on
47
- a bucket. [boolean]
48
- --file, -f The target file. [string]
49
- --help Show help [boolean]
45
+ --bucket, -b The target storage bucket. [string] [required]
46
+ --default, -d Whether to set default access
47
+ controls. Only valid when setting
48
+ access controls on a bucket. [boolean]
49
+ --file, -f The target file. [string]
50
+ --help Show help [boolean]
50
51
51
52
Examples:
52
53
node acl add [email protected] OWNER -b mybucket Add OWNER access controls for
@@ -71,19 +72,20 @@ View the [documentation][buckets_docs] or the [source code][buckets_code].
71
72
__ Usage:__ ` node buckets --help `
72
73
73
74
```
74
- Usage: node buckets COMMAND [ARGS...]
75
-
76
75
Commands:
76
+ create <bucket> Create a new bucket with the given name.
77
+ list List all buckets in the authenticated project.
78
+ delete <bucket> Delete the specified bucket.
77
79
78
- create BUCKET_NAME
79
- list
80
- delete BUCKET_NAME
80
+ Options:
81
+ --help Show help [boolean]
81
82
82
83
Examples:
84
+ node buckets create my-bucket Create a new bucket named "my-bucket".
85
+ node buckets list List all buckets in the authenticated project.
86
+ node buckets delete my-bucket Delete "my-bucket".
83
87
84
- node buckets create my-bucket
85
- node buckets list
86
- node buckets delete my-bucket
88
+ For more information, see https://cloud.google.com/storage/docs
87
89
```
88
90
89
91
[ buckets_docs ] : https://cloud.google.com/storage/docs
@@ -96,21 +98,25 @@ View the [documentation][encryption_docs] or the [source code][encryption_code].
96
98
__ Usage:__ ` node encryption --help `
97
99
98
100
```
99
- Usage: node encryption COMMAND [ARGS...]
100
-
101
101
Commands:
102
+ generate-encryption-key Generate a sample encryption key.
103
+ upload <bucket> <srcFile> <destFile> <key> Upload an encrypted file to a bucket.
104
+ download <bucket> <srcFile> <destFile> <key> Download an encrypted file from a bucket.
105
+ rotate <bucket> <file> <oldkey> <newKey> Rotate encryption keys for a file.
102
106
103
- generate-encryption-key
104
- upload BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME KEY
105
- download BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME KEY
106
- rotate BUCKET_NAME FILE_NAME OLD_KEY NEW_KEY
107
+ Options:
108
+ --help Show help [boolean]
107
109
108
110
Examples:
109
-
110
- node encryption generate-encryption-key
111
- node encryption upload my-bucket resources/test.txt file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q=
112
- node encryption download my-bucket file_encrypted.txt ./file.txt QxhqaZEqBGVTW55HhQw9Q=
113
- node encryption rotate my-bucket file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q= SxafpsdfSDFS89sds9Q=
111
+ node encryption generate-encryption-key Generate a sample encryption key.
112
+ node encryption upload my-bucket resources/test.txt Upload "resources/test.txt" to
113
+ file_encrypted.txt QxhqaZEqBGVTW55HhQw9Q= "gs://my-bucket/file_encrypted.txt".
114
+ node encryption download my-bucket file_encrypted.txt Download "gs://my-bucket/file_encrypted.txt" to
115
+ ./file.txt QxhqaZEqBGVTW55HhQw9Q= "./file.txt".
116
+ node encryption rotate my-bucket file_encrypted.txt Rotate encryptiong keys for
117
+ QxhqaZEqBGVTW55HhQw9Q= SxafpsdfSDFS89sds9Q= "gs://my-bucket/file_encrypted.txt".
118
+
119
+ For more information, see https://cloud.google.com/storage/docs
114
120
```
115
121
116
122
[ encryption_docs ] : https://cloud.google.com/storage/docs
@@ -123,32 +129,36 @@ View the [documentation][files_docs] or the [source code][files_code].
123
129
__ Usage:__ ` node files --help `
124
130
125
131
```
126
- Usage: node files COMMAND [ARGS...]
127
-
128
132
Commands:
133
+ list <bucket> [options] List files in a bucket, optionally filtering
134
+ by a prefix.
135
+ upload <bucket> <srcFile> Upload a local file to a bucket.
136
+ download <bucket> <srcFile> <destFile> Download a file from a bucket.
137
+ delete <bucket> <file> Delete a file from a bucket.
138
+ getMetadata <bucket> <file> Get metadata for a file in a bucket.
139
+ makePublic <bucket> <file> Make a file public in a bucket.
140
+ move <bucket> <srcFile> <destFile> Rename a file in a bucket.
141
+ copy <srcBucket> <srcFile> <destBucket> <destFile> Copy a file in a bucket to another bucket.
129
142
130
- list BUCKET_NAME
131
- listByPrefix BUCKET_NAME PREFIX [DELIMITER]
132
- upload BUCKET_NAME FILE_NAME
133
- download BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME
134
- delete BUCKET_NAME FILE_NAME
135
- getMetadata BUCKET_NAME FILE_NAME
136
- makePublic BUCKET_NAME FILE_NAME
137
- move BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME
138
- copy BUCKET_NAME SRC_FILE_NAME DEST_BUCKET_NAME DEST_FILE_NAME
143
+ Options:
144
+ --help Show help [boolean]
139
145
140
146
Examples:
141
-
142
- list my-bucket
143
- listByPrefix my-bucket /some-folder
144
- listByPrefix my-bucket /some-folder -
145
- upload my-bucket ./file.txt
146
- download my-bucket file.txt ./file.txt
147
- delete my-bucket file.txt
148
- getMetadata my-bucket file.txt
149
- makePublic my-bucket file.txt
150
- move my-bucket file.txt file2.txt
151
- copy my-bucket file.txt my-other-bucket file.txt
147
+ node files list my-bucket List files in "my-bucket".
148
+ node files list my-bucket -p public/ List files in "my-bucket" filtered by prefix
149
+ "public/".
150
+ node files upload my-bucket ./file.txt Upload "./file.txt" to "my-bucket".
151
+ node files download my-bucket file.txt ./file.txt Download "gs://my-bucket/file.txt" to
152
+ "./file.txt".
153
+ node files delete my-bucket file.txt Delete "gs://my-bucket/file.txt".
154
+ node files getMetadata my-bucket file.txt Get metadata for "gs://my-bucket/file.txt".
155
+ node files makePublic my-bucket file.txt Make "gs://my-bucket/file.txt" public.
156
+ node files move my-bucket file.txt file2.txt Rename "gs://my-bucket/file.txt" to
157
+ "gs://my-bucket/file2.txt".
158
+ node files copy my-bucket file.txt my-other-bucket Copy "gs://my-bucket/file.txt" to
159
+ file.txt "gs://my-other-bucket/file.txt".
160
+
161
+ For more information, see https://cloud.google.com/storage/docs
152
162
```
153
163
154
164
[ files_docs ] : https://cloud.google.com/storage/docs
@@ -161,41 +171,74 @@ View the [documentation][storagetransfer_docs] or the [source code][storagetrans
161
171
__ Usage:__ ` node transfer --help `
162
172
163
173
```
164
- Usage: node encryption RESOURCE COMMAND [ARGS...]
174
+ Commands:
175
+ jobs <cmd> [args] Run a job command.
176
+ operations <cmd> [args] Run an operation command.
165
177
166
- Resources:
178
+ Options:
179
+ --help Show help [boolean]
167
180
168
- jobs
181
+ Examples:
182
+ node transfer jobs --help Show job commands.
183
+ node transfer operations --help Show operations commands.
169
184
170
- Commands:
185
+ For more information, see https://cloud.google.com/storage/transfer
186
+ ```
171
187
172
- create SRC_BUCKET_NAME DEST_BUCKET_NAME DATE TIME [DESCRIPTION]
173
- get JOB_NAME
174
- list
175
- set JOB_NAME FIELD VALUE
188
+ __ Usage:__ ` node transfer jobs --help `
176
189
177
- operations
190
+ ```
191
+ transfer jobs <cmd> [args]
178
192
179
- Commands:
193
+ Commands:
194
+ create <srcBucket> <destBucket> <time> <date> Create a transfer job.
195
+ [description]
196
+ get <job> Get a transfer job.
197
+ list List transfer jobs.
198
+ set <job> <field> <value> Change the status, description or transferSpec
199
+ of a transfer job.
180
200
181
- list [JOB_NAME]
182
- get TRANSFER_NAME
183
- pause TRANSFER_NAME
184
- resume TRANSFER_NAME
201
+ Options:
202
+ --help Show help [boolean]
185
203
186
204
Examples:
205
+ node transfer jobs create my-bucket Create a transfer job.
206
+ my-other-bucket 2016/08/12 16:30 "Move my files"
207
+ node transfer jobs get Get a transfer job.
208
+ transferJobs/123456789012345678
209
+ node transfer jobs list List transfer jobs.
210
+ node transfer jobs set Update the description for a transfer job.
211
+ transferJobs/123456789012345678 description "My
212
+ new description"
213
+ node transfer jobs set Disable a transfer job.
214
+ transferJobs/123456789012345678 status DISABLED
215
+ ```
216
+
217
+ __ Usage:__ ` node transfer operations --help `
218
+
219
+ ```
220
+ transfer operations <cmd> [args]
221
+
222
+ Commands:
223
+ list [job] List transfer operations, optionally filtering by a job name.
224
+ get <operation> Get a transfer operation.
225
+ pause <operation> Pause a transfer operation.
226
+ resume <operation> Resume a transfer operation.
187
227
188
- node transfer jobs create my-bucket my-other-bucket 2016/08/12 16:30 "Move my files"
189
- node transfer jobs get transferJobs/123456789012345678
190
- node transfer jobs list
191
- node transfer jobs set transferJobs/123456789012345678 description "My new description"
192
- node transfer jobs set transferJobs/123456789012345678 status DISABLED
193
- node transfer operations list
194
- node transfer operations list transferJobs/123456789012345678
195
- node transfer operations get transferOperations/123456789012345678
196
- node transfer operations pause transferOperations/123456789012345678
197
- node transfer operations resume transferOperations/123456789012345678
228
+ Options:
229
+ --help Show help [boolean]
230
+
231
+ Examples:
232
+ node transfer operations list List all transfer operations.
233
+ node transfer operations list List all transfer operations for a specific
234
+ transferJobs/123456789012345678 job.
235
+ node transfer operations get Get a transfer operation.
236
+ transferOperations/123456789012345678
237
+ node transfer operations pause Pause a transfer operation.
238
+ transferOperations/123456789012345678
239
+ node transfer operations resume Resume a transfer operation.
240
+ transferOperations/123456789012345678
198
241
```
199
242
200
- [ storagetransfer_docs ] : https://cloud.google.com/storage/docs
243
+ [ storagetransfer_docs ] : https://cloud.google.com/storage/transfer
201
244
[ storagetransfer_code ] : transfer.js
0 commit comments