The LANCommander SDK is a .NET 8 assembly designed to allow developers to implement their own client. Most of the core functionality of the official launcher is implemented directly in the SDK and currently supports functionality such as:
As the SDK assembly is a .NET class library, it can also be imported in modern PowerShell versions for use in any custom scripts.
In order to do almost anything through the SDK, you must have an authenticated instance of the LANCommander.SDK.Client
class. Here is an example of how to instantiate the class and authenticate to a server:
var client = new LANCommander.SDK.Client("http://localhost:1337", "C:\\Games");
await client.AuthenticateAsync("username", "password");
Once the client is authenticated, everything you need is available as a manager under the client. For example, to install a game by ID you might use the following:
await client.Games.InstallAsync("114f653d-ea91-484b-8fe9-8e9bb58bde81");
Better documentation for the SDK will be available in the future. In the meantime, please refer to its source code or its usage in the launcher's codebase