- This tool is developed with Go and built on the official GO SDK of OSS Alibaba Cloud Object Storage Service.
- OSS is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, low cost, and high reliability.
- OSS can store any type of files. It applies to various websites, development enterprises and developers.
- This tool aims to provide a convenient-to-use command line for users to manage data in OSS.
- The current version provides to list and delete multipart upload tasks.
- The current version does not support bucket management. The feature will be available in future versions.
- Current version: v1.7.19
- Linux
- Windows
- Mac
- goopt (github.com/droundy/goopt)
- configparser (github.com/alyu/configparser)
- leveldb (github.com/syndtr/goleveldb/leveldb)
- oss (github.com/aliyun/aliyun-oss-go-sdk/oss)
- gopkg.in/check.v1 (gopkg.in/check.v1)
./ossutil
or ./ossutil help ./ossutil help cmd ./ossutil config ./ossutil ls
or ./ossutil ls oss:// ./ossutil ls -a
or ./ossutil ls oss:// -a ./ossutil cp localfile oss://bucketYou can use ./ossutil help cmd to view the help documentation for the command you want to use.
- First, configure your Go project directory.
- Use
go getto get the library that ossutil depends on. - Run
go get github.com/aliyun/ossutil. - Enter the src directory under the Go project directory and build to generate the OSSUTIL tool. For example, on Linux, you can run
go build github.com/aliyun/ossutil/ossutil.go. - Refer to the example above to run the OSSUTIL tool.
- Enter the src directory under the Go project directory and modify the endpoint, AccessKeyId, AccessKeySecret and STSToken configuration items in the github.com/aliyun/ossutil/lib/command_test.go.
- Run
go testunder the lib directory.