Skip to main content
The Java SDK is currently in development. Check back soon or follow us on GitHub for updates.
The Java SDK will allow you to programmatically configure Docker containers to route through the OneCLI proxy from Java and Kotlin applications.

Planned installation

<dependency>
  <groupId>sh.onecli</groupId>
  <artifactId>sdk</artifactId>
  <version>0.1.0</version>
</dependency>

Planned usage

import sh.onecli.OneCLI;

OneCLI oc = new OneCLI("http://localhost:18080");

ContainerConfig config = oc.getContainerConfig();
System.out.println(config.getEnv());
System.out.println(config.getMounts());
Want this SDK sooner? Let us know on GitHub.