diff --git a/docs/minio-client-complete-guide.md b/docs/minio-client-complete-guide.md index c0624087..db1ef232 100644 --- a/docs/minio-client-complete-guide.md +++ b/docs/minio-client-complete-guide.md @@ -526,6 +526,7 @@ FLAGS: --storage-class value, --sc value set storage class for new object(s) on target --encrypt value encrypt/decrypt objects (using server-side encryption with server managed keys) --encrypt-key value encrypt/decrypt objects (using server-side encryption with customer provided keys) + --attr apply metadata to objects (format: KeyName1=string,KeyName2=string) --help, -h show help ENVIRONMENT VARIABLES: @@ -562,6 +563,13 @@ encryptedobject: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ``` Notice that two different aliases myminio1 and myminio2 are used for the same endpoint to provide the old secretkey and the newly rotated key. +*Example: Copy a javascript file to object storage and assign Cache-Control header to the uploaded object* + +```sh +mc cp --attr Cache-Control=no-cache myscript.js play/mybucket +myscript.js: 14 B / 14 B ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.00 % 41 B/s 0 +``` + ### Command `rm` - Remove Objects Use `rm` command to remove file or object