IntelliJ IDEA 2023.3 Help

Organize servers into groups

Server groups let you group server configurations together and work with them as with a single entity. If you need to deploy code to multiple servers, you can use a server group and avoid deploying to each server individually.

Enable the FTP/SFTP/WebDAV Connectivity plugin

This functionality relies on the FTP/SFTP/WebDAV Connectivity plugin, which is bundled and enabled in IntelliJ IDEA by default. If the relevant features aren't available, make sure that you didn't disable the plugin.

  1. Press Ctrl+Alt+S to open the IDE settings and then select Plugins.

  2. Open the Installed tab, find the FTP/SFTP/WebDAV Connectivity plugin, and select the checkbox next to the plugin name.

Create a server group

  1. Press Ctrl+Alt+S to open the IDE settings and then select Build, Execution, Deployment | Deployment.

    Alternatively, go to Tools | Deployment | Configuration....

  2. In the left-hand pane that lists all the existing server configurations, click Add Add item and select Server group in the popup menu.

  3. In the Create new group dialog that opens, type the name of the group to be created and click OK. The Create new group dialog closes and you return to the Connection tab of the Deployment node.

  4. To create a new server configuration inside the group, select the group in the left-hand pane and click either the Add new server link in the right-hand pane or the Add button toolbar button. Then configure the newly created server depending on its type as described in Configure synchronization with a server.

    To add an existing server configuration to the group, drag it into the group. To remove a server configuration, drag it out of the group.

    Populating a server group
  5. Click the Use as default button on the toolbar to have IntelliJ IDEA silently apply the current server group in the following cases:

  6. Use the For current project checkbox to configure the server group visibility, which also applies to all servers contained in the group.

    • Select the checkbox to restrict the use of the group to the current project. Such group cannot be reused outside the current project. It does not appear in the list of available configurations in other projects.

    • When the checkbox is cleared, the group is visible in all IntelliJ IDEA projects. Its settings can be reused across several projects.

The created server group can now be used for uploading and downloading files to the contained servers.

Last modified: 19 March 2024