Scaffold code, manage environments and caches, sync dependencies, and manage external rules.
Commands for working with the workspace itself: generating code, resolving the
environment, managing the shared cache, syncing dependencies, and managing rule
packages. Global flags are documented in the
CLI overview.
rbs scaffold
Generate boilerplate code from a scaffolding template, with variable
substitution in both file names and content.
List all scaffolding templates defined in the workspace.
rbs scaffold list
rbs env
Resolve, validate, and explain the environment declared by .env.schema and
supplied by the layered .env files. Environments are whatever your
.env.schema declares with env.environment() — rbs hardcodes none. Select
one with -e (or RBS_ENV).
rbs env [command]
rbs env check
Validate every package that declares a schema; exits non-zero on failure. This
is the gate to run in CI.
rbs env check [flags]
Flag
Description
--strict
Ignore .env.local (so the result is reproducible from committed files alone) and fail on variables set in a file but declared in no schema
rbs env check --strict
rbs env print
Print the resolved environment, with secrets redacted.
rbs env print [flags]
Flag
Description
--format
Output format: dotenv, export, or json (default dotenv)
--package
Package to resolve for (default: workspace root)
--reveal
Show secret values in full (refused when stdout is not a terminal)
rbs env print -e prod --format json
rbs env explain
Show where a variable’s value came from — which file, line, and source won —
and what it shadowed.
rbs env explain <VAR> [flags]
Flag
Description
--package
Package to resolve for (default: workspace root)
rbs env explain DATABASE_URL
rbs env diff
Show what differs between two environments.
rbs env diff <envA> <envB> [flags]
Flag
Description
--package
Package to resolve for (default: workspace root)
rbs env diff dev prod
rbs env environments
List every environment declared with env.environment() in .env.schema; the
selected environment is marked. Counts cover every package that declares a
schema, and come from the schema — so a required secret nothing has set yet is
reported rather than silently missing. “unset” is how many declared variables
have no value in that environment. Alias: rbs env envs.
rbs env environments [flags]
Flag
Description
--json
Output as JSON
--package
Narrow the counts to one package (default: workspace root)
rbs env environments --json
rbs env template
Generate a .env.example from the schema.
rbs env template [flags]
Flag
Description
--package
Package to resolve for (default: workspace root)
rbs env template -e prod
rbs cache
Manage rbs’s caches. There is exactly one action/content cache: the user-global
content-addressed store (~/.cache/rbs, or $RBS_CACHE_DIR), shared by every
workspace on the machine. The per-workspace .rbs/ directory holds only
materialized state — outputs, toolchains, external deps — rebuilt on demand.
rbs cache [command]
rbs cache stats
Report disk usage of the shared content-addressed store and, when run inside a
workspace, the workspace’s materialized .rbs/ state.
rbs cache stats
rbs cache gc
Garbage-collect the shared content-addressed store, bounding it by age and
size. This is the recommended way to reclaim space.
rbs cache gc [flags]
Flag
Description
--max-age
Collect anything not accessed within this window (supports d, w) (default 30d)
--max-gb
Size budget in GiB — least-recently-used blobs beyond it are collected (default 20)
rbs cache gc --max-age 14d --max-gb 10
rbs cache clean
Remove entries from the shared content-addressed store. --max-age removes
only entries older than a given age (supports w, d, h, m, s); the
user-global OCI image cache is swept by the same bound. --all removes
everything, including the image cache.
rbs cache clean [flags]
Flag
Description
--all
Remove every entry from the shared store (affects all workspaces for this user)
--max-age
Only remove entries older than this (e.g. 7d, 2w, 24h)
rbs cache clean --max-age 7d
Bare rbs cache clean is refused: the store is shared across every workspace
for your user, so emptying it is never what “clean this project” means. Prefer
rbs cache gc; use --max-age or an explicit --all if you really mean to
remove entries.
rbs sync
Download and resolve all external dependencies for the specified targets into
.rbs/external-deps/, so language servers (LSP) can provide autocomplete,
go-to-definition, and type checking.
rbs sync [targets...] [flags]
Flag
Description
--dry-run
Show what would be synced without downloading
-v, --verbose
Show detailed sync progress
rbs sync //... # sync every target in the workspacerbs sync //examples/django-blog:prod_server # sync one target's dependencies
rbs ext
Manage external rule packages. Each package is declared in ext.rbs under a
namespace you choose and loaded as @<namespace>//<path>.rbs:
Refs resolve to a commit once and the commit is recorded in rbs.lock, so
builds are reproducible and a moved tag cannot change your rules silently.
rbs ext update is the only thing that re-reads a moving ref.
rbs ext [command]
rbs ext add
Add an entry to ext.rbs, resolve it, and record the pin.
rbs ext add <git-url|org/name> [flags]
Flag
Description
--as
Namespace to load it under (default: derived from the name)
Show declared packages, their pins, and what they pull in.
rbs ext list
rbs ext update
Forget the recorded commit for a ref and resolve it again. Everywhere else the
pin in rbs.lock wins, which is what stops a moved tag from changing a build.
rbs ext update [namespace]
rbs ext remove
Drop a package from ext.rbs.
rbs ext remove <namespace>
rbs rules
Manage and test rules.
rbs rules [command]
rbs rules test
Run unit tests for custom rules and functions. Discovers and runs test files
matching the pattern (default: *_test.rbs). Test files use assert
functions: assert.equals, assert.true, assert.false, assert.contains,
assert.fails.
rbs rules test [pattern]
rbs rules test # run all rule testsrbs rules test genrule # run tests matching 'genrule'
rbs rules integration
Run integration tests for rules with real RBS workspace execution. Discovers
and runs files matching the pattern (default: *_integration_test.rbs).
Integration tests can create temporary workspaces, run rbs commands, and assert
on outputs via the integration.* functions (create_workspace, copy_rules,
run_rbs, assert_file, assert_output, write_file, read_file,
cleanup).
rbs rules integration [pattern]
rbs rules integration # run all integration testsrbs rules integration python # run integration tests matching 'python'
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ReasonOS Documentation","colors":{"primary":"#22c55e","light":"#5dc984","dark":"#1c8b45"},"logo":{"light":"https://mintcdn.com/reasonos/lusPOrxgbxqrzvHj/logo/light.svg?fit=max\u0026auto=format\u0026n=lusPOrxgbxqrzvHj\u0026q=85\u0026s=bbba5825cb46eca5046d24cb40bc52ac","dark":"https://mintcdn.com/reasonos/lusPOrxgbxqrzvHj/logo/dark.svg?fit=max\u0026auto=format\u0026n=lusPOrxgbxqrzvHj\u0026q=85\u0026s=4bf966b910c3ebe602eb7d87a678d9b2"},"favicon":"https://mintcdn.com/reasonos/lusPOrxgbxqrzvHj/favicon.svg?fit=max\u0026auto=format\u0026n=lusPOrxgbxqrzvHj\u0026q=85\u0026s=1aa9e554f11c6a22169ccb69ecf49bd5","navbar":{"links":[{"href":"mailto:support@reasonos.com","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://reasonos.com/get-started"}},"footer":{"socials":{"x":"https://x.com/reasonos","website":"https://blog.reasonos.com"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://blog.reasonos.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"reasonos","hasAudioNarration":false,"actualSubdomain":"reasonos","customDomains":["docs.reasonos.com"],"gitSource":{"type":"github","owner":"reasonos","repo":"reasonos-mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afd08d18745fb0d64fcde6d","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Guides","count":41},{"language":"default","tag":"Editor","count":22},{"language":"default","tag":"Platform","count":17},{"language":"default","tag":"Team Workflow","count":12},{"language":"default","tag":"Reference","count":8},{"language":"default","tag":"Getting Started","count":7},{"language":"default","tag":"Build","count":7},{"language":"default","tag":"Languages","count":6},{"language":"default","tag":"The ReasonOS Editor","count":5},{"language":"default","tag":"CLI","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":"reference/cli/workspace-commands","slug":"/reference/cli/workspace-commands","pageMetadata":{"title":"Workspace Commands","description":"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.","icon":"folder-cog","href":"/reference/cli/workspace-commands"},"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: \"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.\"\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={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Commands for working with the workspace itself: generating code, resolving the\nenvironment, managing the shared cache, syncing dependencies, and managing rule\npackages. Global flags are documented in the\n`,_jsx(_components.a,{href:`/reference/cli/overview#global-flags`,children:`CLI overview`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`rbs-scaffold`,children:`rbs scaffold`}),`\n`,_jsx(_components.p,{children:`Generate boilerplate code from a scaffolding template, with variable\nsubstitution in both file names and content.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scaffold`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [scaffold-target] [destination-package] [flags]`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`File name variables: `,_jsx(_components.code,{children:`__variableName__`}),` is replaced with the variable value (`,_jsx(_components.code,{children:`__className__.py`}),` becomes `,_jsx(_components.code,{children:`MyClass.py`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`Content variables: `,_jsx(_components.code,{children:`\u003c%= variableName %>`}),` is replaced with the variable value.`]}),`\n`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--non-interactive`})}),_jsxs(_components.td,{children:[`Never prompt: use `,_jsx(_components.code,{children:`--var`}),` values plus declared defaults, and fail if a variable has neither`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--var`})}),_jsxs(_components.td,{children:[`Set a scaffold variable as `,_jsx(_components.code,{children:`key=value`}),` (repeatable). Skips the prompt for that variable`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scaffold`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` :component`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` //src/components`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # scaffold into src/components`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scaffold`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` //templates:service`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` //services/auth`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --var`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` name=auth`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-scaffold-list`,children:`rbs scaffold list`}),`\n`,_jsx(_components.p,{children:`List all scaffolding templates defined in the workspace.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scaffold`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rbs-env`,children:`rbs env`}),`\n`,_jsxs(_components.p,{children:[`Resolve, validate, and explain the environment declared by `,_jsx(_components.code,{children:`.env.schema`}),` and\nsupplied by the layered `,_jsx(_components.code,{children:`.env`}),` files. Environments are whatever your\n`,_jsx(_components.code,{children:`.env.schema`}),` declares with `,_jsx(_components.code,{children:`env.environment()`}),` — rbs hardcodes none. Select\none with `,_jsx(_components.code,{children:`-e`}),` (or `,_jsx(_components.code,{children:`RBS_ENV`}),`).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [command]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-env-check`,children:`rbs env check`}),`\n`,_jsx(_components.p,{children:`Validate every package that declares a schema; exits non-zero on failure. This\nis the gate to run in CI.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--strict`})}),_jsxs(_components.td,{children:[`Ignore `,_jsx(_components.code,{children:`.env.local`}),` (so the result is reproducible from committed files alone) and fail on variables set in a file but declared in no schema`]})]})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --strict`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-env-print`,children:`rbs env print`}),`\n`,_jsx(_components.p,{children:`Print the resolved environment, with secrets redacted.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--format`})}),_jsxs(_components.td,{children:[`Output format: `,_jsx(_components.code,{children:`dotenv`}),`, `,_jsx(_components.code,{children:`export`}),`, or `,_jsx(_components.code,{children:`json`}),` (default `,_jsx(_components.code,{children:`dotenv`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--package`})}),_jsx(_components.td,{children:`Package to resolve for (default: workspace root)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--reveal`})}),_jsx(_components.td,{children:`Show secret values in full (refused when stdout is not a terminal)`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` print`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prod`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --format`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-env-explain`,children:`rbs env explain`}),`\n`,_jsx(_components.p,{children:`Show where a variable’s value came from — which file, line, and source won —\nand what it shadowed.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` explain`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`VA`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`R`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--package`})}),_jsx(_components.td,{children:`Package to resolve for (default: workspace root)`})]})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` explain`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DATABASE_URL`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-env-diff`,children:`rbs env diff`}),`\n`,_jsx(_components.p,{children:`Show what differs between two environments.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` diff`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`A`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`B`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--package`})}),_jsx(_components.td,{children:`Package to resolve for (default: workspace root)`})]})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` diff`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prod`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-env-environments`,children:`rbs env environments`}),`\n`,_jsxs(_components.p,{children:[`List every environment declared with `,_jsx(_components.code,{children:`env.environment()`}),` in `,_jsx(_components.code,{children:`.env.schema`}),`; the\nselected environment is marked. Counts cover every package that declares a\nschema, and come from the schema — so a required secret nothing has set yet is\nreported rather than silently missing. “unset” is how many declared variables\nhave no value in that environment. Alias: `,_jsx(_components.code,{children:`rbs env envs`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` environments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{children:`Output as JSON`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--package`})}),_jsx(_components.td,{children:`Narrow the counts to one package (default: workspace root)`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` environments`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-env-template`,children:`rbs env template`}),`\n`,_jsxs(_components.p,{children:[`Generate a `,_jsx(_components.code,{children:`.env.example`}),` from the schema.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` template`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--package`})}),_jsx(_components.td,{children:`Package to resolve for (default: workspace root)`})]})})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` template`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prod`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rbs-cache`,children:`rbs cache`}),`\n`,_jsxs(_components.p,{children:[`Manage rbs’s caches. There is exactly one action/content cache: the user-global\ncontent-addressed store (`,_jsx(_components.code,{children:`~/.cache/rbs`}),`, or `,_jsx(_components.code,{children:`$RBS_CACHE_DIR`}),`), shared by every\nworkspace on the machine. The per-workspace `,_jsx(_components.code,{children:`.rbs/`}),` directory holds only\nmaterialized state — outputs, toolchains, external deps — rebuilt on demand.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cache`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [command]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-cache-stats`,children:`rbs cache stats`}),`\n`,_jsxs(_components.p,{children:[`Report disk usage of the shared content-addressed store and, when run inside a\nworkspace, the workspace’s materialized `,_jsx(_components.code,{children:`.rbs/`}),` state.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cache`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stats`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-cache-gc`,children:`rbs cache gc`}),`\n`,_jsx(_components.p,{children:`Garbage-collect the shared content-addressed store, bounding it by age and\nsize. This is the recommended way to reclaim space.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cache`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--max-age`})}),_jsxs(_components.td,{children:[`Collect anything not accessed within this window (supports `,_jsx(_components.code,{children:`d`}),`, `,_jsx(_components.code,{children:`w`}),`) (default `,_jsx(_components.code,{children:`30d`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--max-gb`})}),_jsxs(_components.td,{children:[`Size budget in GiB — least-recently-used blobs beyond it are collected (default `,_jsx(_components.code,{children:`20`}),`)`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cache`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gc`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-age`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 14d`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-gb`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-cache-clean`,children:`rbs cache clean`}),`\n`,_jsxs(_components.p,{children:[`Remove entries from the shared content-addressed store. `,_jsx(_components.code,{children:`--max-age`}),` removes\nonly entries older than a given age (supports `,_jsx(_components.code,{children:`w`}),`, `,_jsx(_components.code,{children:`d`}),`, `,_jsx(_components.code,{children:`h`}),`, `,_jsx(_components.code,{children:`m`}),`, `,_jsx(_components.code,{children:`s`}),`); the\nuser-global OCI image cache is swept by the same bound. `,_jsx(_components.code,{children:`--all`}),` removes\neverything, including the image cache.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cache`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--all`})}),_jsx(_components.td,{children:`Remove every entry from the shared store (affects all workspaces for this user)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--max-age`})}),_jsxs(_components.td,{children:[`Only remove entries older than this (e.g. `,_jsx(_components.code,{children:`7d`}),`, `,_jsx(_components.code,{children:`2w`}),`, `,_jsx(_components.code,{children:`24h`}),`)`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cache`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-age`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 7d`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Bare `,_jsx(_components.code,{children:`rbs cache clean`}),` is refused: the store is shared across every workspace\nfor your user, so emptying it is never what “clean this project” means. Prefer\n`,_jsx(_components.code,{children:`rbs cache gc`}),`; use `,_jsx(_components.code,{children:`--max-age`}),` or an explicit `,_jsx(_components.code,{children:`--all`}),` if you really mean to\nremove entries.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`rbs-sync`,children:`rbs sync`}),`\n`,_jsxs(_components.p,{children:[`Download and resolve all external dependencies for the specified targets into\n`,_jsx(_components.code,{children:`.rbs/external-deps/`}),`, so language servers (LSP) can provide autocomplete,\ngo-to-definition, and type checking.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [targets...] [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--dry-run`})}),_jsx(_components.td,{children:`Show what would be synced without downloading`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-v, --verbose`})}),_jsx(_components.td,{children:`Show detailed sync progress`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` //...`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # sync every target in the workspace`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` //examples/django-blog:prod_server`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # sync one target's dependencies`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rbs-ext`,children:`rbs ext`}),`\n`,_jsxs(_components.p,{children:[`Manage external rule packages. Each package is declared in `,_jsx(_components.code,{children:`ext.rbs`}),` under a\nnamespace you choose and loaded as `,_jsx(_components.code,{children:`@\u003cnamespace>//\u003cpath>.rbs`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ext.rbs`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ext(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"java\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`git`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://github.com/acme/java-rules\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`ref`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"v1.2.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# BUILD.rbs`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`load(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@java//jvm/rules.rbs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"java_binary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Refs resolve to a commit once and the commit is recorded in `,_jsx(_components.code,{children:`rbs.lock`}),`, so\nbuilds are reproducible and a moved tag cannot change your rules silently.\n`,_jsx(_components.code,{children:`rbs ext update`}),` is the only thing that re-reads a moving ref.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [command]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-ext-add`,children:`rbs ext add`}),`\n`,_jsxs(_components.p,{children:[`Add an entry to `,_jsx(_components.code,{children:`ext.rbs`}),`, resolve it, and record the pin.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`git-url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`org/name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> [flags]`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--as`})}),_jsx(_components.td,{children:`Namespace to load it under (default: derived from the name)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--ref`})}),_jsx(_components.td,{children:`Tag, branch, or commit (git sources)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--version`})}),_jsxs(_components.td,{children:[`Version tag (`,_jsx(_components.code,{children:`org/name`}),` coordinates)`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/acme/java-rules`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --ref`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` v1.2.0`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --as`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` jvm`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` acme/shared-rules`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2.0.0`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-ext-list`,children:`rbs ext list`}),`\n`,_jsx(_components.p,{children:`Show declared packages, their pins, and what they pull in.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-ext-update`,children:`rbs ext update`}),`\n`,_jsxs(_components.p,{children:[`Forget the recorded commit for a ref and resolve it again. Everywhere else the\npin in `,_jsx(_components.code,{children:`rbs.lock`}),` wins, which is what stops a moved tag from changing a build.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [namespace]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-ext-remove`,children:`rbs ext remove`}),`\n`,_jsxs(_components.p,{children:[`Drop a package from `,_jsx(_components.code,{children:`ext.rbs`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ext`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` remove`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`namespac`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rbs-rules`,children:`rbs rules`}),`\n`,_jsx(_components.p,{children:`Manage and test rules.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [command]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-rules-test`,children:`rbs rules test`}),`\n`,_jsxs(_components.p,{children:[`Run unit tests for custom rules and functions. Discovers and runs test files\nmatching the pattern (default: `,_jsx(_components.code,{children:`*_test.rbs`}),`). Test files use `,_jsx(_components.code,{children:`assert`}),`\nfunctions: `,_jsx(_components.code,{children:`assert.equals`}),`, `,_jsx(_components.code,{children:`assert.true`}),`, `,_jsx(_components.code,{children:`assert.false`}),`, `,_jsx(_components.code,{children:`assert.contains`}),`,\n`,_jsx(_components.code,{children:`assert.fails`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [pattern]`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # run all rule tests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` genrule`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # run tests matching 'genrule'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`rbs-rules-integration`,children:`rbs rules integration`}),`\n`,_jsxs(_components.p,{children:[`Run integration tests for rules with real RBS workspace execution. Discovers\nand runs files matching the pattern (default: `,_jsx(_components.code,{children:`*_integration_test.rbs`}),`).\nIntegration tests can create temporary workspaces, run rbs commands, and assert\non outputs via the `,_jsx(_components.code,{children:`integration.*`}),` functions (`,_jsx(_components.code,{children:`create_workspace`}),`, `,_jsx(_components.code,{children:`copy_rules`}),`,\n`,_jsx(_components.code,{children:`run_rbs`}),`, `,_jsx(_components.code,{children:`assert_file`}),`, `,_jsx(_components.code,{children:`assert_output`}),`, `,_jsx(_components.code,{children:`write_file`}),`, `,_jsx(_components.code,{children:`read_file`}),`,\n`,_jsx(_components.code,{children:`cleanup`}),`).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [pattern]`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integration`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # run all integration tests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rbs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rules`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` integration`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` python`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # run integration tests matching 'python'`})]}),`\n`]})})})]})}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":"Workspace Commands","description":"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.","icon":"folder-cog","href":"/reference/cli/workspace-commands"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"rbs scaffold","slug":"rbs-scaffold","depth":2,"children":[{"title":"rbs scaffold list","slug":"rbs-scaffold-list","depth":3,"children":[]}]},{"title":"rbs env","slug":"rbs-env","depth":2,"children":[{"title":"rbs env check","slug":"rbs-env-check","depth":3,"children":[]},{"title":"rbs env print","slug":"rbs-env-print","depth":3,"children":[]},{"title":"rbs env explain","slug":"rbs-env-explain","depth":3,"children":[]},{"title":"rbs env diff","slug":"rbs-env-diff","depth":3,"children":[]},{"title":"rbs env environments","slug":"rbs-env-environments","depth":3,"children":[]},{"title":"rbs env template","slug":"rbs-env-template","depth":3,"children":[]}]},{"title":"rbs cache","slug":"rbs-cache","depth":2,"children":[{"title":"rbs cache stats","slug":"rbs-cache-stats","depth":3,"children":[]},{"title":"rbs cache gc","slug":"rbs-cache-gc","depth":3,"children":[]},{"title":"rbs cache clean","slug":"rbs-cache-clean","depth":3,"children":[]}]},{"title":"rbs sync","slug":"rbs-sync","depth":2,"children":[]},{"title":"rbs ext","slug":"rbs-ext","depth":2,"children":[{"title":"rbs ext add","slug":"rbs-ext-add","depth":3,"children":[]},{"title":"rbs ext list","slug":"rbs-ext-list","depth":3,"children":[]},{"title":"rbs ext update","slug":"rbs-ext-update","depth":3,"children":[]},{"title":"rbs ext remove","slug":"rbs-ext-remove","depth":3,"children":[]}]},{"title":"rbs rules","slug":"rbs-rules","depth":2,"children":[{"title":"rbs rules test","slug":"rbs-rules-test","depth":3,"children":[]},{"title":"rbs rules integration","slug":"rbs-rules-integration","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"reasonos","siteName":"ReasonOS Documentation","title":"Workspace Commands - ReasonOS Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T02:06:38.285Z","originalFileLocation":"reference/cli/workspace-commands.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=\"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ReasonOS Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_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/reasonos/XjDjRfU2dFUEL9uH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Workspace Commands - ReasonOS Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ReasonOS Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.reasonos.com/reference/cli/workspace-commands\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://reasonos.mintlify.site/_mintlify/api/og/v2?division=CLI\u0026amp;title=Workspace+Commands\u0026amp;description=Scaffold+code%2C+manage+environments+and+caches%2C+sync+dependencies%2C+and+manage+external+rules.\u0026amp;theme=68579bdd2d5db2896e6d3913\u0026amp;signature=e62bfa129947af5e1d44eabf9db08fe405f6e82279fccf9f33047ba1203732b8\">\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=\"Workspace Commands - ReasonOS Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://reasonos.mintlify.site/_mintlify/api/og/v2?division=CLI\u0026amp;title=Workspace+Commands\u0026amp;description=Scaffold+code%2C+manage+environments+and+caches%2C+sync+dependencies%2C+and+manage+external+rules.\u0026amp;theme=68579bdd2d5db2896e6d3913\u0026amp;signature=e62bfa129947af5e1d44eabf9db08fe405f6e82279fccf9f33047ba1203732b8\">\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/reasonos/XjDjRfU2dFUEL9uH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ReasonOS Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#22c55e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.reasonos.com/reference/cli/workspace-commands\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/cli/workspace-commands.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.reasonos.com/#organization\",\"name\":\"ReasonOS Documentation\",\"url\":\"https://docs.reasonos.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/reasonos/lusPOrxgbxqrzvHj/logo/light.svg?fit=max\u0026auto=format\u0026n=lusPOrxgbxqrzvHj\u0026q=85\u0026s=bbba5825cb46eca5046d24cb40bc52ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.reasonos.com#website\",\"name\":\"ReasonOS Documentation\",\"url\":\"https://docs.reasonos.com\",\"publisher\":{\"@id\":\"https://docs.reasonos.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.reasonos.com/reference/cli/workspace-commands#webpage\",\"url\":\"https://docs.reasonos.com/reference/cli/workspace-commands\",\"name\":\"Workspace Commands\",\"description\":\"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.\",\"dateModified\":\"2026-11-18T02:06:38.285Z\",\"isPartOf\":{\"@id\":\"https://docs.reasonos.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.reasonos.com/reference/cli/workspace-commands#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.reasonos.com/reference/cli/workspace-commands#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI\",\"item\":\"https://docs.reasonos.com/reference/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workspace Commands\",\"item\":\"https://docs.reasonos.com/reference/cli/workspace-commands\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.reasonos.com/reference/cli/workspace-commands#article\",\"headline\":\"Workspace Commands\",\"name\":\"Workspace Commands\",\"description\":\"Scaffold code, manage environments and caches, sync dependencies, and manage external rules.\",\"url\":\"https://docs.reasonos.com/reference/cli/workspace-commands\",\"mainEntityOfPage\":{\"@id\":\"https://docs.reasonos.com/reference/cli/workspace-commands#webpage\"},\"dateModified\":\"2026-11-18T02:06:38.285Z\",\"publisher\":{\"@id\":\"https://docs.reasonos.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.reasonos.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ReasonOS Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ReasonOS Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/cli/workspace-commands.md","siteName":"ReasonOS Documentation","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://blog.reasonos.com"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Editor","pages":[{"title":"Editor","href":"/editor/overview"}]},{"tab":"Agents","pages":[{"title":"Agents","href":"/agents/overview"}]},{"tab":"Reference","groups":[{"group":"CLI","pages":[{"title":"CLI Overview","icon":"terminal","href":"/reference/cli/overview"},{"title":"Build Commands","description":"Build, test, and run targets; query the target graph; generate coverage.","icon":"hammer","href":"/reference/cli/build-commands"},{"title":"Workspace Commands","icon":"folder-cog","href":"/reference/cli/workspace-commands"},{"title":"Platform Commands","description":"The RBS server, coding agent, Atlas knowledge graph, MCP integration, stacked branches, checkpoints, and proposals.","icon":"server","href":"/reference/cli/platform-commands"},{"title":"Operations Commands","icon":"cloud-cog","href":"/reference/cli/operations-commands"}]},{"group":"Build Language","pages":[{"title":"The RBS Language","icon":"braces","href":"/reference/dsl"},{"title":"Custom Rules","icon":"hammer","href":"/reference/custom-rules"},{"title":"External Rule Packages","icon":"package","href":"/reference/ext-packages"}]}]},{"tab":"Legal","hidden":true,"pages":[{"title":"Legal","href":"/legal/tou"}]}]},"basePath":"","title":"Workspace Commands - ReasonOS Documentation","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}