Creates a project.

Request syntax

aliyunlog log create_project --project_name=<value> --project_des=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]

Request parameters

The following table describes the required and specific parameters of the create_project command.
Parameter Type Required Example Description
--project_name String Yes project-a The name of the project. The name must meet the following requirements:
  • The name must be globally unique.
  • The name can contain only lowercase letters, digits, and hyphens (-).
  • The name must start and end witha lowercase letter or a digit.
  • The name must be 3 to 63 characters in length.
--project_des String Yes project created from cli The description of the project.
For information about the global parameters of the Log Service command-line interface (CLI), see Global variables.


  • Sample requests
    Use the default account to create a project named project-a.
    aliyunlog log create_project --project_name="project-a" --project_des="project created from cli"
  • Sample responses

    After you run the command, no responses are returned.

Error codes

If an error message is returned, fix the error based on the error codes of the related API operation. For more information, see Error codes of CreateProject.

API reference