All commands accept project, target, connection, and --json options. Virtual environments
must be enabled.stb dev also provides deployment inventory, detail, diff, promotion preview and execution, and
retention cleanup. Audit and rollback remain CLI operations.
List and show
deployment list reconstructs authoritative inventory from append-only lifecycle metadata and live
ClickHouse catalog evidence. Deployments are reported as active, staged, superseded,
incomplete, metadata_missing, or physical_missing.deployment show <deployment-id> displays one deployment’s persisted status, roots, physical
relations, missing relations, active bindings, and latest publication time. Both operations are
read-only.
Diff
deployment diff <deployment-id> compares the active bindings with one retained deployment.
deployment diff <from>:<to> compares explicit endpoints, where either endpoint may be active.
It reports model presence, schema columns, physical availability, current row counts, and one of
added, removed, changed, unchanged, or physical_missing for each logical relation.
Diff is read-only.
Audit
deployment audit <deployment-id> combines staged-versus-active comparison, replay coverage, and
applicable SQL audits. The audit is the operation; its overall readiness assessment is ready,
caution, or not_ready:
ready means the available evidence satisfies the configured checks and no error-severity SQL
audit failed.
caution means evidence is incomplete or warrants operator review.
not_ready means a stronger negative signal or error-severity SQL audit failure was found.
The command does not accept --select. A successful command exits 0 even when the reported
assessment is not_ready.
Readiness is an operator safety signal, not an enforced promotion lock. Treat not_ready as a
reason to stop and investigate.
Promote
deployment promote <deployment-id> atomically replaces each stable tbl__* view so it points to
the selected deployment table. The complete graph is not switched in one transaction; bindings are
replaced one relation at a time and the command reports adapter atomicity.
Rollback
deployment rollback --previous selects the distinct publication immediately before the active
binding identity. deployment rollback <deployment-id> selects an explicitly retained publication.
Both forms restore the complete set of stable bindings and require confirmation unless
--auto-approve is supplied. --json requires --auto-approve.Rollback only accepts successfully published deployments whose complete physical binding set is
still available. It rejects active-view drift rather than performing a partial rollback.
Rollback switches definitions and bindings. It is not point-in-time data recovery: retained
streaming deployment tables can continue receiving rows after their original publication.
Show, audit, promote, and explicit rollback require a positional deployment ID. StreamBuild never
selects a sole or latest candidate implicitly. Use deployment list to discover generated IDs.
Older deployment objects remain available for comparison, rollback, diagnosis, repair, and top-level
stb janitor cleanup.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"StreamBuild","description":"Declarative streaming data pipelines for ClickHouse.","colors":{"primary":"#087E8B","light":"#0EA5A8","dark":"#0D9488"},"logo":{"light":"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_logo_light_cropped.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=e5e126d1d3fccd286c7e7d80c5bbf549","dark":"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_logo_dark_cropped.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=dfed7390ff171390d161d5274e94c7d5"},"favicon":"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_favicon.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=1781550ef425821ca4a54062f21421e6","navbar":{"links":[{"href":"https://github.com/sqlstack-io/streambuild","label":"GitHub","type":"github"}]},"footer":{"socials":{"github":"https://github.com/sqlstack-io/streambuild"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"streambuild-docs","hasAudioNarration":false,"actualSubdomain":"streambuild-docs","customDomains":["docs.streambuild.dev"],"gitSource":{"type":"github","owner":"sqlstack-io","repo":"streambuild-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae2f876934e514db0a518f0","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Core Concepts","count":15},{"language":"default","tag":"CLI Reference","count":13},{"language":"default","tag":"Development UI","count":9},{"language":"default","tag":"Getting Started","count":2},{"language":"default","tag":"Examples","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli/deployment","slug":"/cli/deployment","pageMetadata":{"title":"stb deployment","description":"Discover, inspect, compare, audit, promote, and roll back virtual deployments.","href":"/cli/deployment"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Discover, inspect, compare, audit, promote, and roll back virtual deployments.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The deployment command family uses explicit resource operations:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DEPLOYMENT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"replace-with-deployment-id\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deployment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deployment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` show`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DEPLOYMENT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deployment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` diff`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DEPLOYMENT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deployment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` audit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DEPLOYMENT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deployment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` promote`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DEPLOYMENT_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`stb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deployment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rollback`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --previous`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`All commands accept project, target, connection, and `,_jsx(_components.code,{children:`--json`}),` options. Virtual environments\nmust be enabled.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`stb dev`}),` also provides deployment inventory, detail, diff, promotion preview and execution, and\nretention cleanup. Audit and rollback remain CLI operations.`]}),`\n`,_jsx(Heading,{level:`2`,id:`list-and-show`,children:`List and show`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deployment list`}),` reconstructs authoritative inventory from append-only lifecycle metadata and live\nClickHouse catalog evidence. Deployments are reported as `,_jsx(_components.code,{children:`active`}),`, `,_jsx(_components.code,{children:`staged`}),`, `,_jsx(_components.code,{children:`superseded`}),`,\n`,_jsx(_components.code,{children:`incomplete`}),`, `,_jsx(_components.code,{children:`metadata_missing`}),`, or `,_jsx(_components.code,{children:`physical_missing`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deployment show \u003cdeployment-id>`}),` displays one deployment’s persisted status, roots, physical\nrelations, missing relations, active bindings, and latest publication time. Both operations are\nread-only.`]}),`\n`,_jsx(Heading,{level:`2`,id:`diff`,children:`Diff`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deployment diff \u003cdeployment-id>`}),` compares the active bindings with one retained deployment.\n`,_jsx(_components.code,{children:`deployment diff \u003cfrom>:\u003cto>`}),` compares explicit endpoints, where either endpoint may be `,_jsx(_components.code,{children:`active`}),`.\nIt reports model presence, schema columns, physical availability, current row counts, and one of\n`,_jsx(_components.code,{children:`added`}),`, `,_jsx(_components.code,{children:`removed`}),`, `,_jsx(_components.code,{children:`changed`}),`, `,_jsx(_components.code,{children:`unchanged`}),`, or `,_jsx(_components.code,{children:`physical_missing`}),` for each logical relation.\nDiff is read-only.`]}),`\n`,_jsx(Heading,{level:`2`,id:`audit`,children:`Audit`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deployment audit \u003cdeployment-id>`}),` combines staged-versus-active comparison, replay coverage, and\napplicable SQL audits. The audit is the operation; its overall readiness assessment is `,_jsx(_components.code,{children:`ready`}),`,\n`,_jsx(_components.code,{children:`caution`}),`, or `,_jsx(_components.code,{children:`not_ready`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ready`}),` means the available evidence satisfies the configured checks and no error-severity SQL\naudit failed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`caution`}),` means evidence is incomplete or warrants operator review.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`not_ready`}),` means a stronger negative signal or error-severity SQL audit failure was found.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The command does not accept `,_jsx(_components.code,{children:`--select`}),`. A successful command exits 0 even when the reported\nassessment is `,_jsx(_components.code,{children:`not_ready`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Readiness is an operator safety signal, not an enforced promotion lock. Treat `,_jsx(_components.code,{children:`not_ready`}),` as a\nreason to stop and investigate.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`promote`,children:`Promote`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deployment promote \u003cdeployment-id>`}),` atomically replaces each stable `,_jsx(_components.code,{children:`tbl__*`}),` view so it points to\nthe selected deployment table. The complete graph is not switched in one transaction; bindings are\nreplaced one relation at a time and the command reports adapter atomicity.`]}),`\n`,_jsx(Heading,{level:`2`,id:`rollback`,children:`Rollback`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`deployment rollback --previous`}),` selects the distinct publication immediately before the active\nbinding identity. `,_jsx(_components.code,{children:`deployment rollback \u003cdeployment-id>`}),` selects an explicitly retained publication.\nBoth forms restore the complete set of stable bindings and require confirmation unless\n`,_jsx(_components.code,{children:`--auto-approve`}),` is supplied. `,_jsx(_components.code,{children:`--json`}),` requires `,_jsx(_components.code,{children:`--auto-approve`}),`.`]}),`\n`,_jsx(_components.p,{children:`Rollback only accepts successfully published deployments whose complete physical binding set is\nstill available. It rejects active-view drift rather than performing a partial rollback.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Rollback switches definitions and bindings. It is not point-in-time data recovery: retained\nstreaming deployment tables can continue receiving rows after their original publication.`})}),`\n`,_jsxs(_components.p,{children:[`Show, audit, promote, and explicit rollback require a positional deployment ID. StreamBuild never\nselects a sole or latest candidate implicitly. Use `,_jsx(_components.code,{children:`deployment list`}),` to discover generated IDs.\nOlder deployment objects remain available for comparison, rollback, diagnosis, repair, and top-level\n`,_jsx(_components.code,{children:`stb janitor`}),` cleanup.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"stb deployment","description":"Discover, inspect, compare, audit, promote, and roll back virtual deployments.","href":"/cli/deployment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"List and show","slug":"list-and-show","depth":2,"children":[]},{"title":"Diff","slug":"diff","depth":2,"children":[]},{"title":"Audit","slug":"audit","depth":2,"children":[]},{"title":"Promote","slug":"promote","depth":2,"children":[]},{"title":"Rollback","slug":"rollback","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"streambuild-docs","siteName":"StreamBuild","title":"stb deployment - StreamBuild","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-04T08:49:05.716Z","originalFileLocation":"cli/deployment.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Discover, inspect, compare, audit, promote, and roll back virtual deployments.\">\u003cmeta data-mint-head name=\"application-name\" content=\"StreamBuild\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"stb deployment - StreamBuild\">\u003cmeta data-mint-head property=\"og:description\" content=\"Discover, inspect, compare, audit, promote, and roll back virtual deployments.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"StreamBuild\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.streambuild.dev/cli/deployment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://streambuild-docs.mintlify.site/_mintlify/api/og/v2?division=CLI+Reference\u0026amp;title=stb+deployment\u0026amp;description=Discover%2C+inspect%2C+compare%2C+audit%2C+promote%2C+and+roll+back+virtual+deployments.\u0026amp;theme=d26021e42463983183c472c8\u0026amp;signature=80ee7157a0552469e2a3559d6176da2b5c8a29a632f15a27585465c723b86456\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"stb deployment - StreamBuild\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Discover, inspect, compare, audit, promote, and roll back virtual deployments.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://streambuild-docs.mintlify.site/_mintlify/api/og/v2?division=CLI+Reference\u0026amp;title=stb+deployment\u0026amp;description=Discover%2C+inspect%2C+compare%2C+audit%2C+promote%2C+and+roll+back+virtual+deployments.\u0026amp;theme=d26021e42463983183c472c8\u0026amp;signature=80ee7157a0552469e2a3559d6176da2b5c8a29a632f15a27585465c723b86456\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/streambuild-docs/taYM1CtLL2TnsjTr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"StreamBuild\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#087E8B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.streambuild.dev/cli/deployment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/deployment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.streambuild.dev/#organization\",\"name\":\"StreamBuild\",\"url\":\"https://docs.streambuild.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/streambuild-docs/sEAbSxu5HagfR-Tx/streambuild_logo_light_cropped.png?fit=max\u0026auto=format\u0026n=sEAbSxu5HagfR-Tx\u0026q=85\u0026s=e5e126d1d3fccd286c7e7d80c5bbf549\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.streambuild.dev#website\",\"name\":\"StreamBuild\",\"url\":\"https://docs.streambuild.dev\",\"publisher\":{\"@id\":\"https://docs.streambuild.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.streambuild.dev/cli/deployment#webpage\",\"url\":\"https://docs.streambuild.dev/cli/deployment\",\"name\":\"stb deployment\",\"description\":\"Discover, inspect, compare, audit, promote, and roll back virtual deployments.\",\"dateModified\":\"2026-09-04T08:49:05.716Z\",\"isPartOf\":{\"@id\":\"https://docs.streambuild.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.streambuild.dev/cli/deployment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.streambuild.dev/cli/deployment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI Reference\",\"item\":\"https://docs.streambuild.dev/cli/discover\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"stb deployment\",\"item\":\"https://docs.streambuild.dev/cli/deployment\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.streambuild.dev/cli/deployment#article\",\"headline\":\"stb deployment\",\"name\":\"stb deployment\",\"description\":\"Discover, inspect, compare, audit, promote, and roll back virtual deployments.\",\"url\":\"https://docs.streambuild.dev/cli/deployment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.streambuild.dev/cli/deployment#webpage\"},\"dateModified\":\"2026-09-04T08:49:05.716Z\",\"publisher\":{\"@id\":\"https://docs.streambuild.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.streambuild.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"StreamBuild\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"StreamBuild\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/deployment.md","siteName":"StreamBuild","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/index"},{"title":"Direct-mode Quickstart","href":"/quickstart"}]},{"group":"Core Concepts","pages":[{"title":"Project Configuration","href":"/concepts/project-configuration"},{"title":"Authentication","href":"/concepts/authentication-and-access"},{"title":"Access Control","href":"/concepts/access-control"},{"title":"Sensors","href":"/concepts/sensors"},{"title":"Providers","href":"/concepts/providers"},{"title":"Sources and Pipelines","href":"/concepts/pipelines"},{"title":"Models","href":"/concepts/models"},{"title":"Direct Mode","href":"/concepts/direct-mode"},{"title":"Virtual Environments","href":"/concepts/deployments"},{"title":"Destructive Operations","href":"/concepts/destructive-operations"},{"title":"Replay and Lineage","href":"/concepts/replay-lineage"},{"title":"ClickHouse Architecture","href":"/concepts/architecture"},{"title":"SQL Testing","href":"/concepts/testing"},{"title":"Python Macros","href":"/concepts/macros"},{"title":"Audits","href":"/concepts/audits"}]},{"group":"Development UI","pages":[{"title":"Development UI","href":"/ui/overview"},{"title":"Pipelines","href":"/ui/pipelines"},{"title":"Warehouse Health","href":"/ui/warehouse-health"},{"title":"Sources","href":"/ui/sources"},{"title":"Topics","href":"/ui/topics"},{"title":"Messages","href":"/ui/messages"},{"title":"Plans","href":"/ui/plans"},{"title":"Runs","href":"/ui/runs"},{"title":"Quality","href":"/ui/quality"}]},{"group":"CLI Reference","pages":[{"title":"stb discover","href":"/cli/discover"},{"title":"stb compile","href":"/cli/compile"},{"title":"stb plan","href":"/cli/plan"},{"title":"stb build","href":"/cli/build"},{"title":"stb dev","href":"/cli/dev"},{"title":"stb audit","description":"Run data-quality audits against current live relations.","href":"/cli/audit"},{"title":"stb deployment","href":"/cli/deployment"},{"title":"stb test","description":"Execute SQL-native model and macro tests against ClickHouse.","href":"/cli/test"},{"title":"stb doctor","href":"/cli/doctor"},{"title":"stb repair active-view","href":"/cli/repair"},{"title":"stb reconcile","href":"/cli/reconcile"},{"title":"stb janitor","href":"/cli/janitor"},{"title":"stb destroy and reset-target","href":"/cli/destruction"}]},{"group":"Examples","pages":[{"title":"Commerce Events Demo","href":"/examples/orders-demo"}]}]},"basePath":"","title":"stb deployment - StreamBuild","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}