Skip to content
SegmentStream/ Docs

Loading documentation…

↑ ↓ to navigate  ↵ to open  Esc to close
Website Console
Section menu
CLICommands

segmentstream dev

Run the app and ontology locally against a private copy of production data.

Usage

Command syntax
segmentstream dev [OPTIONS] [COMMAND] [ARGS]...

Run the app and ontology locally against a private copy of production data.  Starts or resumes this Git branch's development session, installs missing app/ and ontology/ dependencies with npm, migrates the session to the local ontology and runs `npm run dev` in ontology/ and app/. Edits to ontology/ migrate the session while the servers keep running. Uncommitted work is fine: nothing is pushed or built. --name names the session, for example on a detached HEAD.  Once the session is connected, `dev` prints a single-use link that signs you in to the local app as the app member with your own email. Before it creates the session, `dev` checks that such a member exists and, if not, says so with your options. `--as EMAIL --role ROLE` (repeatable) instead signs you in as a test member that exists only in this session's data, never in production, holding exactly those roles of the local ontology. `segmentstream dev sign-in` issues another link, for example after signing out, and takes the same options.  App data is a production snapshot taken when the session was created, and the session expires seven days later; the warehouse is live and read-only. --refresh discards the session and starts from a new snapshot. Ctrl-C stops both servers and keeps the session, so the next `segmentstream dev` resumes it. Previews can execute workflows. Edits and incoming webhooks may trigger further processing. Workspace code can contact external services and cause real external effects.  --enable-pipelines also runs the SegmentStream pipeline engine from pipeline/ (installed with uv). The warehouse has no branches: runs write real datasets in the workspace's BigQuery project under a prefix named after the session, read only datasets under that prefix, and refuse destinations unless --allow-destinations is given. Connections the pipeline declares are granted to the session; workspace secrets are not available in sessions.

Options

--name NAME
Session name (default: from the Git branch)
--refresh
Discard the session and start from a new snapshot
--port N
App port (default: first free from 3000) [1<=x<=65535]
--ontology-port N
Ontology port (default: first free from 3100) [1<=x<=65535]
--enable-pipelines
Also run the pipeline engine from pipeline/ against the session
--pipeline-port N
Pipeline engine port (default: first free from 3200) [1<=x<=65535]
--allow-destinations
Let pipeline destinations deliver to real connections (refused by default)
--as EMAIL
Sign in as a test member with this address that exists only in the session's data
--role ROLE
A role of the local ontology the test member holds (repeatable; needs --as)
--workspace UUID
Override the linked workspace UUID
--api-url URL
SegmentStream control-plane origin
--help
Show this message and exit.

Subcommands