Updated on 2026-08-26 GMT+08:00

Prerequisites

Before performing this practice, subscribe to a CodeArts package and configure permissions for each role.

This practice uses the Windows OS as an example.

Constraints

Table 1 Practice case restrictions

Category

Constraint

Region

This practice is applicable to:

  • CodeArts (the AP-Singapore region is used as an example)
  • CodeArts Agent (the CN-Hong Kong region is used as an example)

Tool

This practice can be performed only on CodeArts Agent IDE.

OS

  • Windows OS: Windows 11 (x64) is recommended. For Windows 10 (x64), the version must be 2019 or later, and upgrading to the latest stable version is advised.
  • macOS: macOS 11 or later, compatible with ARM64 (Apple Silicon).
  • Linux: Linux (ARM64) architecture, glibc version ≥ 2.31, glibcxx version ≥ 3.4.26.

Third-party software version

Node.js≥18.0.0

Purchasing a CodeArts Package

  1. Sign up for a HUAWEI ID and enable Huawei Cloud services.
  2. Use your HUAWEI ID to log in to the CodeArts package purchase page.
  3. Configure the CodeArts package parameters. In this practice, the Free package is used as an example.

    Table 2 Purchasing a CodeArts package

    Parameter

    Value

    Description

    Region

    AP-Singapore

    The CodeArts package applies only in the region selected during purchase and cannot be used in other regions.

    CodeArts Package

    Free edition

    Edition of the CodeArts package

    Required Duration

    1 month

    How long you will use the CodeArts package. The free edition has a fixed value of 1 month.

    Auto-renew

    Enable

    This parameter is optional. Enable it as needed. Once enabled, the package will be automatically renewed when it expires.

    • Required duration in months: The package will renew for 1 month each time. The number of renewal times is unlimited.
    • Required duration in years: The package will renew for 1 year each time. The number of renewal times is unlimited.

    For more details, see Auto-Renewal Rules.

  4. Select the checkbox for the agreement and click Enable.

    After purchasing the free package with a HUAWEI ID, proceed with Creating a CodeArts Project and Configuring Code Check Rules.