Use Cloud Toolkit to manage Alibaba Cloud Function Compute functions in your local integrated development environment (IDE). You can run and download cloud functions, or create and upload local functions. This topic uses IntelliJ IDEA as an example to describe how to manage functions with Cloud Toolkit.
Background information
Function Compute is an event-driven and fully managed compute service. It provides quick access to extensive computing resources and an elastic, reliable runtime environment. With Function Compute, you do not need to purchase and manage infrastructure, such as servers. You can simply write and upload code to run tasks in the cloud.
Cloud Toolkit is integrated with Function Compute. After you install and configure Cloud Toolkit, you can view your account's function information in your local IDE. After you install the Fun tool, you can create, run, debug, and deploy functions in your local IDE. You can also run and download functions from the cloud.
Prerequisites
- You have installed and configured Cloud Toolkit. For more information, see Install and configure Cloud Toolkit in IntelliJ IDEA.
- You have installed the Fun tool. For more information, see Funcraft.
- You have activated Function Compute.
Procedure
- Open IntelliJ IDEA.
- In the navigation bar on the right, click the Alibaba Function Compute tab.
- On the Alibaba Function Compute tab, select a region. Then, perform operations on local or remote resources as needed:

- Expand Local Resources to manage local resources:
- Create a resource: In the upper-right corner of Alibaba Function Compute, click the plus sign (+). In the Create Function dialog box, specify the settings, and then click Add.
- Run a local function: Right-click the target function and select Local Run.
- Debug a local function: Right-click the target function and select Local Debug.
- View a function: Right-click the target function and select Go To Code. Note This feature is not supported for functions written in Java.
- Deploy all functions in a Service: Right-click the target Service and select Deploy Service.
- Deploy a single function: Right-click the target function and select Deploy Function.
- Expand Remote Resources to manage remote resources:
- Run a remote function: Right-click the target function and select Remote Run.
- Download all functions in a Service: Right-click the target Service and select Import To Local.
- Download a single function: Right-click the target function and select Import To Local.
- View Service performance: Right-click the target Service and select Properties.
- View function performance: Right-click the target function and select Properties.
- Expand Local Resources to manage local resources:
Verify the results
When you download, run, or deploy resources, IntelliJ IDEA displays operation logs in the Console pane. You can check the logs to verify the operation results.