osscmd Deprecation Notice

更新时间:
复制 MD 格式

osscmd is a Python 2.x-based command line tool that is used to manage buckets and objects.

Important

osscmd was deprecated on July 31, 2019. Alibaba Cloud no longer maintains or updates osscmd. Its commands are integrated into ossutil. Use ossutil instead.

Scenarios

osscmd is suitable for the following scenarios:

  • API-level development and debugging, such as sending requests in specific formats or performing multipart uploads step by step.

  • Managing bucket configurations, such as logging, website, and lifecycle settings, when using the console is inconvenient.

Limits

  • osscmd runs on Python 2.5, 2.6, and 2.7. It does not support Python 3.x.

  • Python SDK 0.x is deprecated. The current version is Python SDK 2.x.x.

  • osscmd does not support new features, such as the IA storage class, Archive Storage, cross-region replication, or mirroring-based back-to-origin.

Quick start

Decompress the downloaded Python SDK package. Then, run the python osscmd + operation command in the directory that contains osscmd. For example, to upload a file to a bucket:

python  osscmd  put  myfile.txt  oss://mybucket
Note

In osscmd, oss://bucket indicates a bucket and oss://bucket/object indicates an object. The oss:// prefix is a resource identifier and has no other meaning.

To view a detailed list of commands, run python osscmd.

To view a detailed list of parameters, run python osscmd help.

References