Skip to content
SegmentStream/ Docs

Loading documentation…

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

segmentstream deploy

Deploy committed main to the workspace Git repository.

Usage

Command syntax
segmentstream deploy [OPTIONS] [DIRECTORY]

Deploy committed main to the workspace Git repository.  DIRECTORY is the exact workspace Git root (default: the current directory). Deploy requires installed Git, complete main history, a clean working tree, and committed workspace linkage. A project without commits is first connected to the workspace repository, as `link` does. Existing workspaces automatically import complete main history on their next deploy. The existing origin is preserved as github or previous-origin; the workspace repository becomes origin. When the server explicitly disables Git migration, legacy workspaces continue to upload source archives. Use --retry to retry a failed deployment of unchanged remote main. Use --preview to deploy clean committed HEAD on any branch without advancing main. --preview-name names a shared preview and is required for detached HEAD. --refresh takes a new production snapshot; --retry retries a failed preview attempt. Previews can execute workflows. Edits and incoming webhooks may trigger further processing. Workspace code can contact external services and cause real external effects.

Options

--api-url URL
SegmentStream control-plane origin
--workspace UUID
Override the linked workspace UUID
--idempotency-key KEY
Reuse a deployment initialization
--retry
Retry the failed deployment for unchanged remote main
--preview
Deploy an isolated app preview from committed HEAD
--preview-name NAME
Explicit preview name (required for detached HEAD)
--refresh
Create a fresh preview snapshot even for unchanged source
--organization ORG-ID
Organization for this command
--help
Show this message and exit.