@lightdash/cli 2.576.0 → 2.577.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/dist/.tsbuildinfo.build +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -311,13 +311,49 @@ The CLI supports these environment variables for authentication:
|
|
|
311
311
|
| `LIGHTDASH_CLI_EMAIL` | Email for login (alternative to `--email`) |
|
|
312
312
|
| `LIGHTDASH_CLI_PASSWORD` | Password for email login (used with `--email`) |
|
|
313
313
|
|
|
314
|
+
### Instance URLs and proxies for agent connections
|
|
315
|
+
|
|
316
|
+
Configure the final public HTTPS URL, including the deployment path prefix.
|
|
317
|
+
For example, use `https://example.com/tools/lightdash` if that is the public
|
|
318
|
+
address. For local development, HTTP is accepted on `localhost`, `127.0.0.1` or
|
|
319
|
+
`[::1]`. For the connection's identity and its API requests, one trailing slash
|
|
320
|
+
is the same as none.
|
|
321
|
+
|
|
322
|
+
Every instance API request made with a connection keeps the prefix and stays
|
|
323
|
+
inside `<instance>/api/`. This also applies to credential-bearing steps during
|
|
324
|
+
approval, token exchange, verification, refresh, status checks and revocation,
|
|
325
|
+
including personal recovery with `agent revoke --name <slot> --human`.
|
|
326
|
+
The CLI refuses all HTTP redirects on these requests, including redirects to
|
|
327
|
+
the same origin or to add a trailing slash. Configure the final address directly;
|
|
328
|
+
the proxy must serve the API paths without a redirect. A proxy can rewrite the
|
|
329
|
+
prefix internally while the CLI continues to use the public address.
|
|
330
|
+
|
|
331
|
+
The CLI builds approval and settings links from the configured instance URL.
|
|
332
|
+
Without a usable saved connection, a settings link is the configured URL as
|
|
333
|
+
written with the path added.
|
|
334
|
+
This API rule does not cover public asset downloads (`install-skills`,
|
|
335
|
+
`upgrade-check` or an explicit external manifest), browser sign-in navigation,
|
|
336
|
+
or the local callback listener. Public downloads carry no connection credential;
|
|
337
|
+
the CLI does not supply its credential or proxy authorization header to the
|
|
338
|
+
browser.
|
|
339
|
+
|
|
340
|
+
`lightdash login <url>` removes a path from the URL. Set `LIGHTDASH_URL` or the
|
|
341
|
+
saved config to preserve a deployment prefix for connections. Ordinary instance
|
|
342
|
+
API requests still use root `/api/...` paths, even with a prefix in the environment
|
|
343
|
+
or config. A proxy must also make the root API paths work for ordinary commands.
|
|
344
|
+
Some displayed links keep the prefix. The connection rule does not change
|
|
345
|
+
ordinary command behaviour.
|
|
346
|
+
|
|
314
347
|
### Connection errors and credential output
|
|
315
348
|
|
|
316
349
|
On the agent connection commands, and when a request made with a connection fails,
|
|
317
350
|
the CLI prints fixed messages and no server-written text. The CLI never prints a
|
|
318
351
|
credential on purpose. Data that a command exists to show is shown as received.
|
|
319
352
|
|
|
320
|
-
The connection forms are `agent connect
|
|
353
|
+
The connection forms are `agent connect --connection` (or a connection option
|
|
354
|
+
such as `--name`), `agent status --name <slot>` (or a selected connection), and
|
|
355
|
+
`agent revoke --name <slot>`. Bare `agent connect` and unnamed, unselected
|
|
356
|
+
`agent status` use the older personal flow.
|
|
321
357
|
Failures include an error status, an error envelope on HTTP 200, an unreadable or
|
|
322
358
|
aborted body, and a redirect. Known error codes select fixed messages; unknown
|
|
323
359
|
codes are omitted. Links use the configured instance and fixed paths and query
|