The Log Service command-line interface (CLI) provides three syntax formats that can be used to run commands, configure the CLI, and obtain help information. This topic describes the three syntax formats of the Log Service CLI.
aliyunlog log <subcommand> [parameters | global options]
The following command shows how to create a project:
aliyunlog log create_project --project_name="project-a" --project_des="project created from cli"
aliyunlog configure <access_id> <access-key> <endpoint> [<client-name>]
<access-key>variables with the AccessKey ID and AccessKey secret of an account that has management permissions on Log Service. Replace
<endpoint>with the endpoint of the region to which the account belongs.
<client-name>is the name of the account that runs the command. For more information, see AccessKey pair and Endpoints.
The following example shows how to create an account named test:
aliyunlog configure LTAI4G24******dYKSpLMZ XjAsPzvbK******tagJeRqax cn-hangzhou.log.aliyuncs.com test
help and version commands
aliyunlog [--help | --version]
The following example shows how to obtain the version of the current CLI: