@@ -59,7 +59,7 @@ import { OneCLI } from "@onecli-sh/sdk";
5959
6060const onecli = new OneCLI ({
6161 apiKey: " oc_..." , // optional: falls back to ONECLI_API_KEY env var
62- url: " http://localhost:3000" , // optional: falls back to ONECLI_URL env var, then https://app .onecli.sh
62+ url: " http://localhost:3000" , // optional: falls back to ONECLI_URL env var, then https://api .onecli.sh
6363});
6464
6565// Get raw container configuration
@@ -77,7 +77,7 @@ const active = await onecli.applyContainerConfig(args);
7777| Variable | Description |
7878| ---------------- | -------------------------------------------------------- |
7979| ` ONECLI_API_KEY ` | User API key (` oc_... ` ). Used when ` apiKey ` is not passed to constructor. |
80- | ` ONECLI_URL ` | Base URL of OneCLI instance. Defaults to ` https://app .onecli.sh ` . |
80+ | ` ONECLI_URL ` | Base URL of OneCLI instance. Defaults to ` https://api .onecli.sh ` . |
8181
8282## API Reference
8383
@@ -92,7 +92,7 @@ new OneCLI(options?: OneCLIOptions)
9292| Option | Type | Required | Default | Description |
9393| --------- | -------- | -------- | ----------------------------------- | ------------------------------- |
9494| ` apiKey ` | ` string ` | No | ` ONECLI_API_KEY ` env var | User API key (` oc_... ` ) |
95- | ` url ` | ` string ` | No | ` ONECLI_URL ` or ` https://app .onecli.sh ` | Base URL of the OneCLI instance |
95+ | ` url ` | ` string ` | No | ` ONECLI_URL ` or ` https://api .onecli.sh ` | Base URL of the OneCLI instance |
9696| ` timeout ` | ` number ` | No | ` 5000 ` | Request timeout in milliseconds |
9797
9898#### ` onecli.getContainerConfig() `
@@ -123,7 +123,7 @@ const active = await onecli.applyContainerConfig(args, {
123123| ` addHostMapping ` | ` boolean ` | ` true ` | Add ` host.docker.internal ` mapping on Linux |
124124
125125** What it does:**
126- 1 . Fetches ` /api /container-config ` with ` Authorization: Bearer {apiKey} `
126+ 1 . Fetches ` /v1 /container-config ` with ` Authorization: Bearer {apiKey} `
1271272 . Pushes ` -e KEY=VALUE ` for each server-controlled environment variable
1281283 . Writes CA certificate to a temp file and mounts it into the container
1291294 . Builds a combined CA bundle (system CAs + OneCLI CA) so curl, Python, Go, etc. also trust OneCLI
0 commit comments