Loading...
Loading...
Alibaba Cloud OSS CLI (ossutil 2.0) skill. Install, configure, and operate OSS from the command line based on the official ossutil overview.
npx skill4agent add cinience/alicloud-skills alicloud-storage-oss-ossutilossutil configossutil lsreferences/install.mdossutil config~/.ossutilconfigC:\Users\issuser\.ossutilconfigAccessKey IDAccessKey SecretRegioncn-hangzhouEndpointexport ALICLOUD_ACCESS_KEY_ID="你的AK"
export ALICLOUD_ACCESS_KEY_SECRET="你的SK"
export ALICLOUD_REGION_ID="cn-beijing"ALICLOUD_REGION_ID~/.alibabacloud/credentials[default]
type = access_key
access_key_id = 你的AK
access_key_secret = 你的SKossutil 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.md