With the coscli plugin, users can perform batch operations on objects such as uploading, downloading, and deleting through simple command line instructions.
tencentcom/coscli:latest
docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) cnbcool/coscli:latest --version
main:
push:
- stages:
- name: run with tencentcom/coscli
image: tencentcom/coscli
script: |
coscli config set --secret_id $SECRET_ID --secret_key $SECRET_KEY
coscli config add --init-skip=true -b $BUCKET -r $REGION
coscli cp ./build cos://$BUCKET -r
For more usage, refer to coscli documentation.