@lingo.dev/cli
v1.26.0
Published
Keywords
Readme
Lingo.dev CLI
This package owns the customer-distributed lingo executable. Localization requests use the Lingo API; the internal score command calls OpenRouter through AI SDK v6.
Telemetry
Set LINGO_TELEMETRY_DISABLED=1, DO_NOT_TRACK=1 or OTEL_SDK_DISABLED=true to disable CLI analytics and OTLP export. Localization still works. The CLI does not identify users from unverified JWT claims. It resolves a human or API-key actor through authenticated API responses; service-key CI runs remain separate pipeline actors.
PostHog uses the EU ingestion host and a public project token. No private ingestion credential ships in the package. Command events are buffered in memory and sent when the command ends, on success, expected errors, defects and cancellation. Delivery is best effort and bounded to one second; SIGKILL cannot flush. Credentials and secret values are removed from event properties, and flags are recorded by name only, never by value.
OTLP logs, traces, and metrics use Effect's native exporters and go only to a collector you configure. Configure OTEL_EXPORTER_OTLP_ENDPOINT or the standard per-signal endpoints and OTEL_EXPORTER_OTLP_HEADERS. Each exporter has a 500 ms shutdown budget. Existing LINGO_SIGNOZ_INGEST_ENDPOINT and ingestion-key overrides remain supported for customer-owned collectors. Collector logs and traces keep original error messages and stacks, so configure only a trusted collector.
Verification
Run package-local typecheck and lint, and the offline tests with fake transports. src/services/e2e.test.ts is a pure data-flow pipeline test and belongs in this suite. Do not run the separate live CLI E2E package against production services.
pnpm --filter @lingo.dev/cli typecheck
pnpm --filter @lingo.dev/cli exec vitest run