Create a project
Run a CLI command to create a Simple Log Service (SLS) project.
Prerequisites
Before you run the CLI command, make sure that the following requirements are met:
SLS is activated. For more information, see Getting started with Simple Log Service.
The SLS CLI is installed and configured. For more information, see Install the CLI and Configure the CLI.
Command syntax
aliyun sls create-project --project-name=<value> [--description=<value>] [--recycle-bin-enabled=<value>]
Parameters
The following table describes the required and command-specific parameters.
Parameter |
Type |
Required |
Example |
Description |
|
String |
Yes |
aliyun-test-project |
The name of the project. Naming rules: The name must be globally unique. The name can contain only lowercase letters, digits, and hyphens (-). The name must start and end with a lowercase letter or digit. The name must be 3 to 63 characters in length. The name cannot be changed after the project is created. |
|
String |
No |
Test project |
The description of the project. |
|
Boolean |
No |
true |
Specifies whether to enable the recycle bin feature. We recommend that you enable this feature so that you can recover data if a Logstore is accidentally deleted. |