cmd

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Command studio is setup B's local binary (S4.6, §10.1): the UI, OTLP ingest, SQLite and a dev token on 127.0.0.1:7331 — the zero-infra Studio for any language's app:

studio                                   # serves UI + OTLP, prints a dev token
WEFT_STUDIO_URL=http://127.0.0.1:7331 ./my-go-app
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:7331 python app.py

The database defaults to the otel local sink's path ($WEFT_DB or ./.weft/weft.db), so the same file serves an in-process app and the binary. --db sqlite://path picks another file; --db clickhouse://user:pass@host:9000/db serves the hosted backend (obsdb/clickhouse, wired at merge-B). The dev token is printed at start and fixed by WEFT_STUDIO_TOKEN or --token.

This is its own module so the studio library never carries what only the binary needs — it is the one place that imports the clickhouse driver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL