Help Center/ CodeArts Agent/ FAQs/ CodeArts Agent CLI/ What Should I Do If a Command Fails to Run and a Message Is Displayed Asking Whether to Trust This Folder?
Updated on 2026-07-29 GMT+08:00

What Should I Do If a Command Fails to Run and a Message Is Displayed Asking Whether to Trust This Folder?

Symptom

When you run a command in CodeArts Agent CLI, a message is displayed asking whether to trust this folder.

Cause Analysis

The restricted mode is enabled for CodeArts Agent CLI. That means the value of enabled is set to true (the default value is false) in the %USERPROFILE%/.codeartsdoer/cli-data/settings.json configuration file.

Solution

Perform the following operations to trust the entire directory (D:\CLI01) and all its subdirectories and workspace files:

  • Method 1: On the displayed page, select Trust this folder and press Enter.
    Figure 1 Trusting the target folder
  • Method 2: Go to the %USERPROFILE%/.codeartsdoer/cli-data directory and open the settings.json file. Change the value of enabled to false.
    Figure 2 Distrusting this author