Connection launches
Launching shell connections in various different scenarios
From the hub
Any shell connection added to XPipe will show up in the connection hub interface. From there, you can just click on it to establish a shell connection in your terminal:
By default, this action is triggered by a single click. If you prefer having to double-click a connection entry to launch it, you can enable this behavior in the connection settings menu:
From desktop shortcuts
For frequently launched connections, it might make sense to make them available in your desktop environment itself instead of having to go through the XPipe GUI to launch it.
You can find the option to create a shortcut in the submenu for the launch action:
This will create a shortcut on your desktop:
This is supported on all operating systems, each shortcut is adapted to fit in with the operating system and desktop environment. This means that you can use these shortcuts in many different contexts like the start menu, taskbar, dock, and more:
From the terminal
If you are frequently using the terminal, it might be easier to launch a shell connections directly from within that existing local terminal instead of navigating to the GUI and launching the connections manually from there.
XPipe supports this with the xpipe launch
command. The basic syntax is
to open a new shell session and
to directly run a command in that remote shell and return.
The connection name can be specified either using the full name of the connection or only a partial name as long as it is unambiguous. It also supports globs, meaning that you don't have to type out full connection names and hierarchies in case it is a sub connection. Standard glob options like *
, **
, []
, ?
work the same way as they do for files.
For example, in the following scenario
you can launch the WSL Ubuntu-24.04 instance with the following commands:
As long as it is unambiguous, everything works fine. However, the following command will not work due to there being multiple systems with a similar name:
In the end, it is the easiest option to just have distinct names for every system.
From a script
Using the XPipe HTTP API, you can instruct XPipe to launch shell connections either in the background or also in a new terminal window/tab. As an example, using the Python API, you can start a shell connection and run commands like this:
If you want to open the shell connection in a new terminal session instead, you can do it like this:
For more information on how to work with the Python API, how to obtain connection UUIDs, and more, take a look at the Python API page.