Use Terminal Assistant

更新时间:
复制 MD 格式

Generate O&M commands and scripts with the LLM-powered Terminal Assistant in Workbench. You can also use AI chat to troubleshoot Workbench issues.

Overview

Note

Terminal Assistant is currently available for a free trial.

Terminal Assistant uses the Qwen LLM. After you connect to an instance with Workbench, you can generate commands, analyze log output, and get answers about product operations.

Use cases

  • AI command generation

    Forgot a command? Use AI command generation to create it.

  • AI command explanation

    After running a command, use AI command explanation to interpret the output.

  • AI chat

    Use AI chat to troubleshoot Workbench issues.

2025-03-04_14-19-08

2

3

AI command generation

Basic usage

If you forget a command, use AI command generation to create it.

  1. Connect to an ECS instance with Workbench.

    See Connect to an Instance using Workbench.

  2. On the right side of the command line, click Agent, or right-click and select AI Command Assistant. Describe the desired operation and press Enter. If the generated command meets your needs, click Insert Command and press Enter to execute it.

    image

More operations

To disable this feature, click the image icon in the lower-right corner. Go to AI Settings > Shell and turn off AI Command Assistant.

Example

Generate a command to find files that contain "log" in the current folder

The following figure shows how to generate a command that searches for files containing 'log' in the current directory.

2025-03-04_14-19-08

AI command explanation

Basic usage

After running a command, click the image icon at the end of the output to get an explanation.

image

More operations

Disable this feature: To hide the image icon, use one of the following methods:

  • Method 1: In the right-click menu, deselect AI Command Explanation.

  • Method 2: Click the image icon in the lower-right corner. Go to AI Settings > Shell and turn off AI Command Explanation.

Example

Explain the command find . -name "*log*" and its output

The following figure shows the explanation for find . -name "*log*" and its output.

2

AI chat

Basic usage

Ask Terminal Assistant questions in natural language to complete O&M tasks.

  1. In the upper-right corner of Workbench, click Terminal Assistant.

    image

  2. Enter your question and press Enter. Terminal Assistant uses the Qwen LLM to provide answers.

    image

More operations

  • Create a new conversation: Click image in the upper-right corner of the Terminal Assistant dialog box.

  • View conversation history: Click image in the upper-right corner of the Terminal Assistant dialog box.

Examples

Ask questions about Workbench operations

Ask Terminal Assistant about Workbench operations, such as how to upload a file.

3

Parse commands and outputs

Ask Terminal Assistant about the meaning of commands and their outputs.

4

Generate Shell scripts

Use Terminal Assistant to generate shell scripts.

5