Offline mode
IDE Services comes with specific offline mode capabilities that allow you to run the server in a network-isolated environment.
Enable offline mode
To start using IDE Services offline, there are a few essential steps to follow. First, you need to enable the offline mode functionality in a server configuration file.
Set the value of the
tbe.offline.enabled
property totrue
:tbe: offline: enabled: trueSet the value of the
tbe.tbe-ij-plugin.tbe-plugin-repository-type
property toTBE
:tbe: tbe-ij-plugin: tbe-plugin-repository-type: TBE
For more details, refer to Server configuration file.
Set the value of the
ides.config.offlineMode.enabled
property totrue
:ides: config: offlineMode: enabled: trueSet the value of the
ides.config.intellijPlugin.pluginRepositoryType
property toTBE
:ides: config: intellijPlugin: pluginRepositoryType: "TBE"
For more details, refer to Values file.
Download IDE Services CLI
Once you've made the required changes to your server configuration file, you can start the IDE Services Server and download the IDE Services command-line tool (CLI).
In the Web UI, open the Offline mode tab.
page and go to theClick Download tbe-cli to start the download. The IDE Services CLI tool is packed to a zip archive.
Unpack the tbe-cli-<version> zip file to a desired directory.
Download artifacts
Utilize IDE Services CLI to request and download artifacts necessary for bootstrapping IDE Services in offline mode. These artifacts, which are typically acquired by IDE Services through external network requests, include tool feed metadata (encoded in a Toolbox App-specific format), as well as IDEs, tools (including Toolbox App), and the JetBrains IDE Services plugin.
IDE Services CLI commands
The IDE Services CLI tool offers several CLI commands that enable you to acquire all the essential resources.
tbe-cli init
IDE Services CLI provides support for the tbe-cli init
command to download essential artifacts, generate the file and folder structure, and create mappings between the JetBrains resources and local object storage.
The downloaded artifacts are stored in the current directory under /tbe/offline/:
where:
/distributions contains the latest distribution of the Toolbox App for various operating systems (OS).
/feeds stores the encoded tool metadata for the Toolbox App.
/plugins includes versions of the JetBrains IDE Services plugin compatible with the latest IDE versions, starting from 2021.2.
To determine the plugin version and its compatible IDE, you can examine the names of ZIP files. For example, a file named 1.0.4917.5386-ij221.zip indicates that the JetBrains IDE Services plugin's version is
1.0.4917.5386
, and it is compatible with the IDE builds of version 2022.1 as indicated byij221
.offline.json defines mappings of JetBrains resources and object storage paths.
tbe-cli tool list
The tbe-cli tool list
command lists JetBrains products, along with their available versions that you can download.
When executing the command, you can apply filters to only list versions of a particular product. The filters follow an NPM-like syntax (for more details, see the NPM documentation.)
Examples:
List all available versions of all JetBrains products:
./tbe-cli tool listList all build versions of IntelliJ IDEA Ultimate:
./tbe-cli tool list IDEA-UList all RubyMine builds that are part of version 2023.1:
./tbe-cli tool list "RubyMine@231.*"
Options:
Option | Description |
---|---|
| Includes builds that are released as part of the Early Access Program (EAP) in the list. |
| Includes build distributions and links for downloading them in the list. |
tbe-cli tool download
Use the tbe-cli tool download
command to download the desired builds of JetBrains products locally.
To download particular builds or products, use filters when executing the command. The filters follow an NPM-like syntax similarly to the tbe-cli tool list
command (for more details, see the NPM documentation.)
For the tbe-cli tool download
command, IDE Services CLI supports filtering by products and product versions. You can also download multiple products using the same command. The only exception is when you need to download both an EAP and stable version simultaneously.
Examples:
Download the latest build of IntelliJ IDEA Ultimate for all available OSs:
./tbe-cli tool download IDEA-UDownload all IntelliJ IDEA Ultimate builds for all available OSs:
./tbe-cli tool download IDEA-U --all-buildsDownload all GoLand builds that are part of version 2023.1:
./tbe-cli tool download "GoLand@231.*" --all-buildsDownload the latest Rider build version that is earlier than 231.9*:
./tbe-cli tool download "Rider@<231.9"Download IntelliJ IDEA Ultimate version 231.9161.38 and the latest build of PyCharm Professional that is later than 2022.3:
./tbe-cli tool download "IDEA-U@231.9161.38" "PyCharm-P@>223"Download RubyMine version 2024.1 and the associated Code With Me JetBrains Client:
./tbe-cli tool download "RM-241.15989.113" --jbc
Options:
Option | Description |
---|---|
| Downloads builds that are released as part of the Early Access Program (EAP). |
| Downloads all tools. |
| Downloads all IDE builds matching the specified filters. By default, IDE Services CLI downloads the latest build version only. |
| Downloads versions of the Code With Me JetBrains Client associated with the versions of tools that you configure in the filter (for more details, refer to the Code With Me guest UI overview.) |
tbe-cli help
The tbe-cli help
command provides you with an exhaustive list of commands available in IDE Services CLI.
Example: Download artifacts
From this example, you will learn the sequence of commands that you need to execute to download all available builds of IntelliJ IDEA Ultimate 2023.1 and the latest available EAP build of WebStorm.
Launch IDE Services CLI in the terminal.
Run initialization by executing:
tbe-cli initRun the following command to download all IntelliJ IDEA Ultimate builds that came out as part of the 2023.1 release:
./tbe-cli tool download "IDEA-U@231.*" --all-buildsRun the following command to download the latest available EAP build of WebStorm for all OSs:
./tbe-cli tool download WebStorm --eap
After executing these commands, you will have all the necessary artifacts downloaded and ready for transferring to your object storage.
Transfer artifacts to the object storage
In offline mode, IDE Services uses mappings to identify the paths to products that you can later enable in profiles for particular users. After running the tbe-cli init
command in IDE Services CLI, the offline.json file appears in the /tbe/offline/ directory. This file contains mappings between JetBrains resources and their corresponding paths in the IDE Services object storage. Once you download specific IDE builds locally, IDE Services CLI automatically adds them to the mapping list.
To transfer the required artifacts, upload the /tbe/offline/ directory into your object storage. This enables IDE Services to locate and provide access to the applications listed in the mapping file.
When you have transferred all the necessary artifacts to your object storage, it is necessary to restart the IDE Services Server for the changes to take effect. After that, you can proceed with setting up profiles and uploading the necessary plugins.
Example: Use AWS CLI to transfer artifacts
By executing the commands from this example, you can quickly bootstrap IDE Services in offline mode.
Before start, install and configure AWS CLI. You can use this tool to automate binary uploads to the S3-compatible bucket. Additionally, make sure to obtain an automation token to interact with the IDE Services API via HTTP(s).
Run initialization by executing:
tbe-cli initDownload the latest release builds of RubyMine and IntelliJ IDEA Ultimate:
./tbe-cli tool download RubyMine IDEA-UTransfer the downloaded binaries to the S3-bucket using AWS CLI:
aws s3 sync ./tbe s3://<your-bucket> --endpoint-url http://<url-to-TBE>:9000Upload the latest binaries of the JetBrains IDE Services plugin to the IDE Services Server:
for file in ./tbe/plugins/*; do curl -i \ -H 'Authorization: Automation <permanentToken>' \ -F file=@"$file" \ -F channel=Stable \ https://<your-server-url>/api/plugins done;
(Advanced) Store artifacts in CDN, Artifactory, Nexus
In case you use some internal binary provider as Artifactory or Nexus in your organization as an alternative to S3-compatible storage, you can configure IDE Services to recognize the paths to JetBrains products in your internal binary repository. For this purpose, you will need to reconfigure the offline.json file and update the list of mappings.
The default structure of the mappings in offline.json is as follows:
where:
from
defines the URL of a JetBrains resource that is typically accessed online.to
defines the path to that specific resource in the object storage.tbe-s3://
is a reference to the bucket in the S3-compatible storage used by IDE Services.
Update mappings
Upload the contents of the /tbe/offline/ directory to your storage.
Open the offline.json file for editing and replace the default values of the
to
parameters with the paths to the correct location in your chosen repository. For example:{ "from": "https://download.jetbrains.com/~urlswitch/idea/ideaIU-2023.1.3-aarch64.dmg", "to": "tbe-s3://offline/distributions/IDEA-U/231.9161.38/mac/arm/ideaIU-2023.1.3-aarch64.dmg" }{ "from": "https://download.jetbrains.com/~urlswitch/idea/ideaIU-2023.1.3-aarch64.dmg", "to": "<YOUR_STORAGE>/offline/distributions/IDEA-U/231.9161.38/mac/arm/ideaIU-2023.1.3-aarch64.dmg" }Upload the updated version of offline.json to your storage.
Restart the IDE Services Server for the changes to take effect.