文檔:https://help.aliyun.com/document_detail/44075.html
下載工具
https://help.aliyun.com/document_detail/120075.html?spm=a2c4g.11186623.6.840.151b62e7LMdYoU
我是 windows
Windows系統安裝
單擊下載鏈接下載工具。
將工具解壓,並雙擊運行ossutil.bat文件。
運行以下命令,生成配置文件。
D:\ossutil>ossutil64.exe config
4 請輸入配置文件名:回車
5 請輸入endpoint:https://oss-cn-hangzhou.aliyuncs.com
6 請輸入accessKeyID:xxxxxxxxxxxxx
7 請輸入accessKeySecret:xxxxxxxxxxxxx
8 請輸入stsToken:回車
上傳命令
// ossutil64 cp 固定 // C:\Users\Tyler\Desktop\image\14.jpg 上傳文件 // oss://bucketName/ 桶名 ossutil64 cp C:\Users\Tyler\Desktop\image\14.jpg oss://bucketName/
成功
