All Products
Search
Document Center

Serverless App Engine:CLI reference

Last Updated:Sep 08, 2023

You can use Alibaba Cloud CLI to call the Serverless App Engine (SAE) API and manage SAE resources.

Install Alibaba Cloud CLI

For more information, see the following topics:

Configure Alibaba Cloud CLI

For more information, see Overview.

Use Alibaba Cloud CLI to call API operations

For more information, see Call RPC API and RESTful API. Before you use SAE, you must be familiar with the API operations of SAE. For more information, see List of operations by function. You must also be familiar with the request parameters and response parameters of each API operation.

Note

The parameters of different data types in the API operations must comply with the parameter format requirements of Alibaba Cloud CLI. For more information, see Parameter format overview.

The following examples show how to use Alibaba Cloud CLI to call SAE API operations:

  • Create an application

    aliyun sae CreateApplication --AppName test --NamespaceId cn-shenzhen --PackageType=Image --Replicas=2 --ImageUrl=registry-vpc.cn-shenzhen.aliyuncs.com/sae-demo-image/consumer:1.0 --Cpu 1000 --Memory 2048 --Deploy=true
  • Query applications

    aliyun sae ListApplications --region cn-beijing

Usage notes

When you use Alibaba Cloud CLI to call an API operation to perform a complex task, we recommend that you compile the command into a shell script and then run the shell script to improve efficiency.

References

OpenAPI