Loading...
Loading...
Use when installing, configuring, or operating Alibaba Cloud OSS from the command line with ossutil 2.0, based on the official ossutil overview.
npx skill4agent add cinience/alicloud-skills aliyun-oss-ossutilpython skills/storage/oss/aliyun-oss-ossutil/scripts/check_ossutil.py --output output/aliyun-oss-ossutil/validate.txtoutput/aliyun-oss-ossutil/validate.txtoutput/aliyun-oss-ossutil/ossutil configossutil lsreferences/install.mdossutil config~/.ossutilconfigC:\Users\issuser\.ossutilconfigAccessKey IDAccessKey SecretRegioncn-hangzhouEndpointexport ALIBABACLOUD_ACCESS_KEY_ID="<your-ak>"
export ALIBABACLOUD_ACCESS_KEY_SECRET="<your-sk>"
export ALIBABACLOUD_REGION_ID="cn-beijing"ALIBABACLOUD_REGION_ID~/.alibabacloud/credentials[default]
type = access_key
access_key_id = <your-ak>
access_key_secret = <your-sk>ossutil configossutil api put-bucket-aclossutil ls
ossutil ls oss://your-bucket -r --short-format --region cn-shanghai -e https://oss-cn-shanghai.aliyuncs.com
ossutil cp ./local.txt oss://your-bucket/path/local.txt
ossutil cp oss://your-bucket/path/remote.txt ./remote.txt
ossutil sync ./local-dir oss://your-bucket/path/ --deleteossutil lsoss-cn-shanghai--regioncn-shanghai--region-eossutil ls oss://your-bucket \
-r --short-format \
--region cn-shanghai \
-e https://oss-cn-shanghai.aliyuncs.comossutil ls oss://your-bucket --limited-num 100
ossutil ls oss://your-bucket/some-prefix/ -r --short-format --region cn-shanghai -e https://oss-cn-shanghai.aliyuncs.comError: region must be set in sign version 4.region--region cn-xxxThe bucket you are attempting to access must be addressed using the specified endpoint-e https://oss-cn-hongkong.aliyuncs.comInvalid signing region in Authorization header--region-ereferences/sources.mdALIBABACLOUD_ACCESS_KEY_IDALIBABACLOUD_ACCESS_KEY_SECRETALIBABACLOUD_REGION_ID