All Products
Search
Document Center

Compute Nest:Sample entry-level application

Last Updated:Jun 13, 2025

This topic describes how to quickly create a Compute Nest service based on a built-in template using ComputeNest CLI.

Prerequisites

Install ComputeNest CLI

pip install computenest-cli

image

Create a service using an official template

  1. View officially maintained projects.

    computenest-cli list-projects

    image

  2. 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-demo
  3. Log on to Compute Nest using your AccessKey.

    computenest-cli login --access_key_id=<yourAccessKeyID> --access_key_secret=<yourAccessKeySecret>

    image

  4. Create a service.

    computenest-cli import --service_name=springboot-ecs-package-demo-test01

    image

  5. 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.

    image

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 file
  • config.yaml defines the configuration information of the Compute Nest service.

  • The ros_templates directory contains ROS templates. ROS is an official Alibaba Cloud Infrastructure as Code (IaC) language that allows you to define resource architecture.

  • The resources directory defines service resources, including service logo, deployment artifact resources, and more. For example, software packages can be stored in this directory.

  • The service_test directory defines service tests, which can include test cases.