This topic describes how to quickly create a Compute Nest service based on a built-in template using ComputeNest CLI.
Prerequisites
Python 3.7 or later is available. If you have not installed Python, see Deploy Python environment.

Create an AccessKey dedicated for ComputeNest CLI access. For more information, see Create an AccessKey for a RAM user.
Install ComputeNest CLI
pip install computenest-cli
Create a service using an official template
View officially maintained projects.
computenest-cli list-projects
Initialize the project and specify the project folder. This section uses SpringBoot Basic Edition-Package Deployment as an example.
cd project # Specify the project directory computenest-cli init-project --project_name=springboot-ecs-package-demo cd springboot-ecs-package-demoLog on to Compute Nest using your AccessKey.
computenest-cli login --access_key_id=<yourAccessKeyID> --access_key_secret=<yourAccessKeySecret>
Create a service.
computenest-cli import --service_name=springboot-ecs-package-demo-test01
After the service is created, you can log on to the Compute Nest - My Services page to view the detailed information of the created service.

How it works
To create a service using ComputeNest CLI, the project must include Compute Nest service configuration files. Taking the SpringBoot demo as an example, the Compute Nest configuration file structure is as follows:
.
└── .computenest - Stores Compute Nest service build configuration
├── README.md - Service description and service build instructions
├── docs - Service documentation related files
│ └── index.md
├── service_test - Service test folder
├── resources - Service resource files
│ ├── icons
│ │ └── service_logo.png - Service logo
│ └── artifact_resources - Deployment artifact related resource files
│ └── file - File deployment artifact directory
│ └── package.tgz - SpringBoot installation package
├── ros_templates - Service ROS templates, can have multiple
│ └── template.yaml - Example ROS template
├── config.yaml - Service configuration fileconfig.yamldefines the configuration information of the Compute Nest service.The
ros_templatesdirectory containsROStemplates. ROS is an official Alibaba Cloud Infrastructure as Code (IaC) language that allows you to define resource architecture.The
resourcesdirectory defines service resources, including service logo, deployment artifact resources, and more. For example, software packages can be stored in this directory.The
service_testdirectory defines service tests, which can include test cases.