Alibaba Cloud Developer Toolkit plugin for JetBrains IDEs

更新时间:
复制 MD 格式

Install and configure the Alibaba Cloud Developer Toolkit plugin to browse APIs, debug calls, and generate SDK sample code in your JetBrains IDE.

Install the plugin

Prerequisites

The following examples use IntelliJ IDEA for Windows.

Method 1: Install from the marketplace

  1. In the IntelliJ IDEA top menu bar, choose image > Plugins…, or choose File > image > Plugins.

  2. On the Plugins page, click the Marketplace tab.

  3. Search for Alibaba Cloud Developer Toolkit and click Install.

  4. Click Apply, and then click OK.

image

Method 2: Install from a downloaded package

  1. Download the plugin package from the JetBrains Marketplace.

  2. In the IntelliJ IDEA top menu bar, choose image > Plugins…, or choose File > image > Plugins.

  3. On the Plugins page, click the gear icon image, select Install Plugin from Disk..., and then select the downloaded package. Do not decompress the package.

image

Verify the installation

After installation, the Toolkit icon appears in the left-hand tool window bar.image

Configure a profile

Configure a profile with valid AccessKey credentials to make API calls. The plugin supports only AccessKey credentials.

Note
  • If you do not have Alibaba Cloud CLI installed, you must use Method 1 to configure your profile.

  • If you have Alibaba Cloud CLI installed, you can use either Method 1 or Method 2 to configure your profile.

Method 1

  1. Click New Profile or the image icon.image

  2. Enter the Profile Name, RegionId, Access Key ID, and Secret Access Key. Use an existing AccessKey pair or create one. View the AccessKey information of a RAM user. The Secret Access Key is displayed only once — store it securely.

    Important

    A root account AccessKey grants full permissions to all resources and poses a significant security risk if compromised. We recommend using a RAM user AccessKey instead.

  3. Click Add Configurations.

  4. A Profile added. message appears. Select the new profile from the drop-down list in the left pane.

  5. Click a profile name to switch the active profile.

image

Method 2

  1. If Alibaba Cloud CLI is installed and configured, the plugin reuses its credential configuration. Configure credentials for Alibaba Cloud CLI.

  2. Use the drop-down list in the left pane or the status bar to switch between profiles.

  3. Click a profile name in the drop-down list to activate it.

2.png

Features

The plugin lets you browse Alibaba Cloud APIs, debug API calls, generate SDKs, and insert SDK sample code in your projects.1.png

Search for services and APIs

The left pane lists services in a tree view. Search by service name in English or Chinese, then click a service to browse its APIs.3.png

View API reference

Click an API to view its reference, including description, request parameters, response parameters, and error codes.4.png

API debugging

  • API debugging requires authentication.

  • Fill in the API parameters to view results in the IDE, or click Debug to open the API in OpenAPI Explorer.

5.png

View and insert SDK sample code

View SDK sample code

The plugin can generate SDK sample code.

  • The plugin generates sample code based on your parameters. Open and edit the code directly in the IDE.

  • Automatic dependency import is supported for Maven only.

  • Use the Installation Method and View Source Code buttons to manage dependencies and view source code.

6.png

Insert code snippets

Insert Java or async Java SDK sample code with a single click. The plugin adds the Maven dependency to your pom.xml automatically. Toggle this feature by right-clicking and selecting Alibaba Cloud Developer Toolkit > Disable/Enable Alibaba Cloud SDK auto-completion, or press ctrl+cmd+p.7.png8.png9.png