Install aliyuncli

aliyuncli is a tool based on Alibaba Cloud open APIs. With this tool, you can easily call Alibaba Cloud open API to manage your Alibaba Cloud product. Aliyuncli commands correspond to Alibaba Cloud open APIs in a one-to-one manner, and delivers robust flexibility and scalability at an equal capacity. Based on aliyuncli, you can encapsulate Alibaba Cloud atomic APIs to obtain your expected functions.
Note pip The pip-installed aliyuncli will automatically process various dependencies.
  • You can install aliyuncli directly using the following command:
    $sudo pip install aliyuncli
  • aliyuncli upgrades:
    $sudo pip install --upgrade aliyuncli
  • For more information, see Alibaba Cloud CLI.

Install CDN SDK

The CDN SDK must be installed because CDN functions are used alongside it.
Note  The SDK will automatically process various dependencies and upgrades,  therefore, we recommend that you install SDKs using pip.
  • Install the CDN SDK directly using the following command:
    $ sudo pip install aliyun-python-sdk-cdn
  • SDK upgrades:
    $ sudo pip install --upgrade aliyun-python-sdk-cdn

aliyuncli CDN command descriptions

Service operation commands

  • Command instructions:

    Domain name operations can only be performed after the CDN service has been activated. A single user can only activate the service once. The account will activate only if it has been verified with real-name authentication.

  • Example:
    aliyuncli cdn OpenCdnService --InternetChargeType PayByTraffic
  • Command instructions:

    Querying the CDN service status will include the current billing type, service activation time, the billing type that will take effect next, and the current service status.

  • Example:
    aliyuncli cdn DescribeCdnService
  • Command instructions:

    Changes the CDN service billing type.

  • Example:
    aliyuncli cdn ModifyCdnService --InternetChargeType PayByTraffic

For more information about API interface, see API reference.