@@ -33,13 +33,19 @@ View the [documentation][buckets_docs] or the [source code][buckets_code].
3333__ Usage:__ ` node buckets --help `
3434
3535```
36- Usage: node buckets [ COMMAND] [ARGS...]
36+ Usage: node buckets COMMAND [ARGS...]
3737
3838Commands:
3939
40- create [ BUCKET_NAME]
40+ create BUCKET_NAME
4141 list
42- delete [BUCKET_NAME]
42+ delete BUCKET_NAME
43+
44+ Examples:
45+
46+ node buckets create my-bucket
47+ node buckets list
48+ node buckets delete my-bucket
4349```
4450
4551[ buckets_docs ] : https://cloud.google.com/storage/docs
@@ -52,20 +58,60 @@ View the [documentation][files_docs] or the [source code][files_code].
5258__ Usage:__ ` node files --help `
5359
5460```
55- Usage: node files [ COMMAND] [ARGS...]
61+ Usage: node files COMMAND [ARGS...]
5662
5763Commands:
5864
59- list [BUCKET_NAME]
60- listByPrefix [BUCKET_NAME] [PREFIX] [DELIMITER]
61- upload [BUCKET_NAME] [FILE_NAME]
62- download [BUCKET_NAME] [SRC_FILE_NAME] [DEST_FILE_NAME]
63- delete [BUCKET_NAME] [FILE_NAME]
64- getMetadata [BUCKET_NAME] [FILE_NAME]
65- makePublic [BUCKET_NAME] [FILE_NAME]
66- move [BUCKET_NAME] [SRC_FILE_NAME] [DEST_FILE_NAME]
67- copy [BUCKET_NAME] [SRC_FILE_NAME] [DEST_BUCKET_NAME] [DEST_FILE_NAME]
65+ list BUCKET_NAME
66+ listByPrefix BUCKET_NAME PREFIX [DELIMITER]
67+ upload BUCKET_NAME FILE_NAME
68+ download BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME
69+ delete BUCKET_NAME FILE_NAME
70+ getMetadata BUCKET_NAME FILE_NAME
71+ makePublic BUCKET_NAME FILE_NAME
72+ move BUCKET_NAME SRC_FILE_NAME DEST_FILE_NAME
73+ copy BUCKET_NAME SRC_FILE_NAME DEST_BUCKET_NAME DEST_FILE_NAME
74+
75+ Examples:
76+
77+ list my-bucket
78+ listByPrefix my-bucket /some-folder
79+ listByPrefix my-bucket /some-folder -
80+ upload my-bucket ./file.txt
81+ download my-bucket file.txt ./file.txt
82+ delete my-bucket file.txt
83+ getMetadata my-bucket file.txt
84+ makePublic my-bucket file.txt
85+ move my-bucket file.txt file2.txt
86+ copy my-bucket file.txt my-other-bucket file.txt
6887```
6988
7089[ files_docs ] : https://cloud.google.com/storage/docs
7190[ files_code ] : files.js
91+
92+ ### Encryption
93+
94+ View the [ documentation] [ encryption_docs ] or the [ source code] [ encryption_code ] .
95+
96+ __ Usage:__ ` node encryption --help `
97+
98+ ```
99+ Usage: node encryption COMMAND [ARGS...]
100+
101+ Commands:
102+
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+
108+ 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=
114+ ```
115+
116+ [ encryption_docs ] : https://cloud.google.com/storage/docs
117+ [ encryption_code ] : encryption.js
0 commit comments