Releases: tencentyun/coscli
Releases · tencentyun/coscli
v1.0.4
修改命令:
- ls
- 新增参数:--all-versions ,列举对象的所有版本,仅当bucket开启版本控制后可用。列出历史版本参数增加显示字段VersionId, IsLatest, Delete Marker
- 限频重试策略优化,当触发限频时,默认进行重试,retry-num参数不再生效
- du
- 新增参数:--all-versions 统计对象的所有版本数据,仅当bucket开启版本控制后可用。统计信息增加显示DeleteMarker数量
- lspart
- 新增参数:--upload-id
- 当传入upload-id时,需指定具体文件,仅展示upload-id对应的文件碎片信息
- 未传入upload-id时,展示指定prefix下正在进行中的分块上传任务
- abort
- 增加参数:--fail-output及--fail-output-path错误日志相关参数,与cp及sync命令的相关参数作用相同,用来记录清理过程中失败的信息
- 性能优化
- rb
- 增加参数:--fail-output及--fail-output-path错误日志相关参数,与cp及sync命令的相关参数作用相同,用来记录清理过程中失败的信息
- 输出信息优化
- rm
- 批量删除每批次删除对象数改为1000(之前是100)
- 输出信息优化
- 新增参数:--all-versions
- 仅支持在已开启版本控制的Bucket内使用,且仅在传入--recursive(-r)参数时可用,遍历删除所有版本对象
- 新增参数:--version-id
- 仅支持在已开启版本控制的Bucket内使用,且仅在未传入--recursive(-r)参数时可用,删除指定object的指定版本
- cp
- 新增参数:--version-id 下载指定版本的文件,仅支持在已开启版本控制的Bucket内使用
- 新增参数:--move 仅COS路径间拷贝可用(其他会报错),会在文件成功拷贝到目标路径后,删除源文件
- 上传筛选本地文件名逻辑修改,改为筛选命令传入的路径+文件名
- 错误重试策略优化,默认进行5xx错误重试,指定错误重试次数和间隔后,会进行部分4xx重试
- copy时支持修改文件存储类型
- 增加传输开始控制台输出及传输结束输出,并记录至coscli.log
- 使用参数--part-size=0开启自适应分块大小
- sync
- 上传筛选本地文件名逻辑修改,改为筛选命令传入的路径+文件名
- 错误重试策略优化,默认进行5xx错误重试,指定错误重试次数和间隔后,会进行部分4xx重试
- 增加传输开始控制台输出及传输结束输出,并记录至coscli.log
- --part-size=0开启自适应分块大小
- restore
- 增加支持maz归档存储类型取回和深度归档存储取回
- 输出提示信息优化
- 错误信息记录优化,调用API失败会记录错误日志到coscli_output
- 可靠性优化,增加默认限频重试
- 可用性优化,增加409 StatusCode(已触发回热)直接跳过
- mb
- 新增参数:--maz(-m)默认为false,为true时即为创建多az的存储桶
- config set
- 新增参数:--disable_encryption 默认为false,为true时即为不加密配置文件中的秘钥相关信息
- config init
- 新增交互式配置Input Disable Encryption 仅当传true时,取消加密配置文件中的秘钥相关信息
新增命令:
1.bucket-versioning
- 使用示例:
./coscli bucket-versioning --method [method] cos://<bucket-name> versioning
- 开启版本控制:
./coscli bucket-versioning --method put cos://examplebucket Enabled
- 暂停版本控制:
./coscli bucket-versioning --method put cos://examplebucket Suspended
Command Modifications:
- ls
- Added parameter: --all-versions, lists all versions of an object, available only when bucket versioning is enabled. Added fields for historical versions: VersionId, IsLatest, Delete Marker.
- Optimized rate limiting retry strategy, default retries when rate limit is triggered, retry-num parameter is no longer in effect.
- du
- Added parameter: --all-versions, calculates data of all object versions, available only when bucket versioning is enabled. Added information to display the count of DeleteMarkers.
- lspart
- Added parameter: --upload-id
- When upload-id is specified, the specific file must be indicated, and displays the parts information of the file corresponding to the upload-id.
- When upload-id is not specified, displays ongoing multipart upload tasks under the specified prefix.
- abort
- Added parameters: --fail-output and --fail-output-path for error log, same function as related parameters in cp and sync commands, used to log failed information during cleanup.
- Performance optimization.
- rb
- Added parameters: --fail-output and --fail-output-path for error log, same function as related parameters in cp and sync commands, used to log failed information during cleanup.
- Output information optimization.
- rm
- Changed batch delete count to 1000 objects per batch (previously 100).
- Output information optimization.
- Added parameter: --all-versions
- Only works in versioning-enabled buckets and only available when --recursive (-r) parameter is passed, recursively deletes all versions of objects.
- Added parameter: --version-id
- Only works in versioning-enabled buckets and only available when --recursive (-r) parameter is not passed, deletes a specified version of the specified object.
- cp
- Added parameter: --version-id, downloads the specified version of the file, only available in versioning-enabled buckets.
- Added parameter: --move, only available for copying between COS paths (otherwise will report an error), deletes the source file after successfully copying to the target path.
- Modified local filename filtering logic to filter based on the command-passed path + filename.
- Optimized error retry strategy, defaults to retrying on 5xx errors, optionally retries some 4xx errors if specified.
- Supports changing file storage types during copy.
- Added console output for transfer start and transfer end, and records to coscli.log.
- Use parameter --part-size=0 to enable adaptive part size.
- sync
- Modified local filename filtering logic to filter based on the command-passed path + filename.
- Optimized error retry strategy, defaults to retrying on 5xx errors, optionally retries some 4xx errors if specified.
- Added console output for transfer start and transfer end, and records to coscli.log.
- Use --part-size=0 to enable adaptive part size.
- restore
- Added support for maz archive storage retrieval and deep archive storage retrieval.
- Optimized output prompt information.
- Optimized error log, records error log to coscli_output on API call failure.
- Reliability optimization, added default rate limit retry.
- Availability optimization, directly skips 409 StatusCode (already heated).
- mb
- Added parameter: --maz (-m), defaults to false, when true creates multi-az storage bucket.
- config set
- Added parameter: --disable_encryption, defaults to false, when true disables encryption of key-related information in the configuration file.
- config init
- Added interactive configuration Input Disable Encryption, only cancels encryption of key-related information in the configuration file when true is passed.
New Commands:
- bucket-versioning
- Usage example:
./coscli bucket-versioning --method [method] cos://<bucket-name> versioning
- Enable versioning:
./coscli bucket-versioning --method put cos://examplebucket Enabled
- Suspend versioning:
./coscli bucket-versioning --method put cos://examplebucket Suspended
v1.0.3
v1.0.2
更新内容:
- cp及sync命令增加--disable-checksum 选项,默认为false,校验整个文件的crc64,为true时仅校验分片crc64
- 兼容ofs融合桶api(ls cp sync rm等命令)
- 新增创建/获取symlink命令,可针对特定object创建软链,并通过软链快速获取key值
- 新增cat命令,可查看object内容,建议1MB以内小文件使用
- 新增lsdu命令,可列出当前目录所有文件及文件夹内容,并统计每个文件夹的文件数及总大小
- 新增--log-path全局选项,自定义coscli.log文件位置。可指定文件夹或具体文件(文件需以.log结尾)如:/data/ 或 /data/coscli.log
- 错误返回优化
Update contents:
- Add the --disable-checksum option to the cp and sync commands. By default, it is set to false, which means the entire file's crc64 is verified. If set to true, only the fragment's crc64 is verified.
- Compatible with OFS fusion bucket API (commands like ls, cp, sync, rm, etc.).
- Add new commands to create/get symlink. You can create a symlink for a specific object and quickly obtain the key value through the symlink.
- Add a new cat command to view object content. It is recommended to use it for small files under 1MB.
- Add a new lsdu command to list all files and folders in the current directory, and count the number of files and the total size of each folder.
- Add a global --log-path option to customize the location of the coscli.log file. You can specify a directory or a specific file (the file must end with .log), e.g., /data/ or /data/coscli.log.
- Optimize error returns.
v1.0.1
v0.20.0-beta
Fix the compatibility bug with Chinese characters in the list. Add retry logic for downloads.
v0.19.0-beta
coscli supports domain switching, sync function optimization, and ls bucket supports specifying domain
v0.18.0-beta
Add an option to skip setting the config file parameter
v0.17.0-beta
coscli initialization does not force the generation of a config file
v0.16.0-beta
Bug fix for copying single file
v0.15.0-beta
Fix the compatibility issue of the cp command in coscli on Windows.