segmentstream workspace history squash
Replace the workspace repository's history with one commit.
Usage
segmentstream workspace history squash [OPTIONS] [DIRECTORY]Replace the workspace repository's history with one commit. The new root commit keeps exactly the files of the current main. The command then deploys it and permanently deletes the previous repository, its push records, and the stored sources and hosting deployments of earlier deployments. Agent sessions and workflow runs owned by earlier deployments end with them; each chat's next message starts a new session. Use it to remove committed secrets or data from the workspace's history. Run it from a clean checkout of the linked workspace whose main equals remote main. Every other clone stops accepting pushes and must be cloned again. Copies outside SegmentStream, such as a GitHub remote, are not changed. Running the command again resumes an interrupted replacement. The new repository holds only main. The command lists the work branches it deletes before asking for confirmation; --yes confirms deleting them too. To keep one, merge it into main and deploy first, or push it to another remote. Until the replacement is imported, --cancel restores the previous history instead and moves this clone's main back to it.
Options
--yes- Confirm the replacement without prompting
--api-url URL- SegmentStream control-plane origin
--workspace UUID- Override the linked workspace UUID
--idempotency-key KEY- Reuse a deployment request
--cancel- Cancel a reserved replacement and restore the history
--organization ORG-ID- Organization for this command
--help- Show this message and exit.