You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidate coana launcher env vars into SOCKET_CLI_COANA_LAUNCHER
Replace the SOCKET_CLI_COANA_FORCE_NPM_INSTALL and
SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK toggles with a single
SOCKET_CLI_COANA_LAUNCHER variable (auto | npx | npm-install), mirroring
the Socket Node CLI. The legacy variables remain supported when the new
variable is unset, but are deprecated and no longer documented.
Follow-up from the review thread on PR #230.
Copy file name to clipboardExpand all lines: docs/cli-reference.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -316,9 +316,10 @@ For CI-specific examples and guidance, see [`ci-cd.md`](ci-cd.md).
316
316
317
317
The CLI runs a pinned `@coana-tech/cli` version via `npx --yes --force` (the same flags the Socket Node CLI passes for coana); it does **not** auto-update the engine or install it globally. `--yes` skips npx's interactive install prompt so non-interactive/CI runs don't hang. If the `npx` launcher is unavailable or fails before the engine starts, the CLI falls back to `npm install`-ing the pinned version into a temp directory and running it via `node`. Pass `--reach-version latest` to opt into the newest published version. Use `--reach` to enable reachability analysis during a full scan, or add `--only-facts-file` (with `--reach`) to submit only the reachability facts file (`.socket.facts.json`) when creating the full scan.
318
318
319
-
The launcher fallback can be tuned via environment variables:
320
-
- `SOCKET_CLI_COANA_FORCE_NPM_INSTALL` — skip `npx` entirely and always use the `npm install` + `node` path (useful where `npx` is known-broken).
321
-
- `SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK` — never fall back; surface the `npx` failure directly.
319
+
The launcher can be tuned via the `SOCKET_CLI_COANA_LAUNCHER` environment variable:
320
+
- `auto` (default when unset) — try `npx` first; fall back to `npm install` + `node` if the launcher fails before the engine starts.
321
+
- `npm-install` — skip `npx` entirely and always use the `npm install` + `node` path (useful where `npx` is known-broken).
322
+
- `npx` — never fall back; surface the `npx` failure directly.
0 commit comments