You can use the EASCMD client to manage services in Elastic Algorithm Service (EAS) of Platform for AI (PAI). This topic describes how to download the EASCMD client and complete identity authentication.
Procedure
Download the EASCMD client.
Different versions of the EASCMD client are available. You can click one of the following links to download the EASCMD client based on your business requirements:
Optional. In the command-line interface (CLI), run the following command to change the downloaded client file to an executable file. If you download the EASCMD client of Windows 64, you can skip this step.
chmod +x <eascmd64>
In the command, <eascmd64> indicates the name of the downloaded client file. Change eascmd64 to the name of your client file.
Use the AccessKey pair of your Alibaba Cloud account to complete identity authentication.
The authentication command varies based on the client version.
If you download the EASCMD client of Windows 64, run the following command in the CLI of Windows:
eascmdwin64.exe config -i <yourAccessKeyID> -k <yourAccessKeySecret> [-e Endpoint]
If you download the EASCMD client of another operating system, run the following command in the CLI of the specific operating system:
./<eascmd64> config -i <yourAccessKeyID> -k <yourAccessKeySecret> [-e Endpoint]
Configure the parameters based on your business requirements. The following table describes the parameters.
Parameter
Description
<eascmd64>
The name of the client file that is downloaded based on your system environment.
<yourAccessKeyID>
The AccessKey ID of your Alibaba Cloud account.
<yourAccessKeySecret>
The AccessKey secret of your Alibaba Cloud account.
Endpoint
By default, the EAS endpoint of the China (Shanghai) region is used. If you want to deploy your model in another region, you can use the -e parameter to specify the endpoint of the related region. For more information, see List Mode. For example, the name of the client file is eascmd64. You can run the following command to specify the endpoint of the China (Beijing) region:
./eascmd64 config -i <yourAccessKeyID> -k <yourAccessKeySecret> -e pai-eas.cn-beijing.aliyuncs.com
Check the authentication result. If the authentication is successful, the system displays information similar to the following result:
Configuration saved to: /Users/test/.eas/config
References
After you download the EASCMD client and complete identity authentication, you can use client commands to create or manage services. For more information, see Run commands to use the EASCMD client.
You can also create or manage services in the PAI console. For more information, see Model service deployment by using the PAI console.