Updated on 2026-10-22 GMT+08:00

Installation

Preparations

  • Before coding with CodeArts Agent CLI, sign up for a Huawei Cloud account and purchase a package.
    1. Visit the Huawei Cloud official website, and click Sign Up in the upper right corner.
    2. Sign up for a Huawei Cloud account.
    3. Subscribe to a CodeArts Agent package based on your service requirements. For details, see Subscription Management.
  • If you are using an IAM user, use the enterprise administrator account to assign a seat to the user.

Windows

In Windows, you can run the installation command only through PowerShell.

  1. Open PowerShell and run the CodeArts Agent CLI installation command.

    irm https://apsoutheast1-cloudide-marketplace.obs.ap-southeast-1.myhuaweicloud.com/codearts/cli_tui/install_script/install.ps1 | iex

    If the CodeArts Agent CLI version is displayed, the installation is successful.

    Figure 1 Output indicating successful installation on Windows

  2. After the installation is successful, complete authorization by referring to Authorization.
  3. (Optional) If you are on the intranet, configure the proxy.

macOS/Linux

The installation method for CodeArts Agent CLI is the same on macOS and Linux. The following walks you through the installation process step by step, using Linux as an example.

  1. (Optional) If you are on the intranet, configure the proxy.
  2. Run the following command on the terminal to download and execute the installation script of CodeArts Agent CLI:

    sh -c "$(curl -L https://apsoutheast1-cloudide-marketplace.obs.ap-southeast-1.myhuaweicloud.com/codearts/cli_tui/install_script/install.sh)" && export PATH=~/.codeartsdoer/installers:$PATH

    If the CodeArts Agent CLI version is displayed, the installation is successful.

  3. After the installation is successful, complete authorization by referring to Authorization.