CLI
brutx-vue is the official BrutxUI command-line tool, designed to help you quickly scaffold new projects, initialize configurations, manage component lifecycles, and run enterprise-grade diagnostics and self-healing.
Overview
You can run the CLI without local installation via package managers:
npx brutx-vue@latest <command>Alternatively, install it locally as a development dependency:
pnpm add -D brutx-vue
# or
npm install -D brutx-vueProject Setup
brutx-vue create
Scaffold a brand-new Vue 3 project pre-configured with BrutxUI from scratch:
npx brutx-vue@latest create <project-name>The create command downloads the template, sets up the directory layout, installs required dependencies, and executes init automatically.
Examples
Create a default Vite + Vue 3 + TypeScript project:
npx brutx-vue@latest create my-appUse the Nuxt template and specify bun as the package manager:
npx brutx-vue@latest create my-nuxt-app --template nuxt --package-manager bunOptions
| Flag | Description | Default |
|---|---|---|
-t, --template <template> | Project template (default, nuxt) | default |
--package-manager <pm> | Package manager for installing project dependencies and initializing BrutxUI (pnpm, npm, yarn, bun) | pnpm |
-c, --cwd <path> | Target working directory | Current directory |
-y, --yes | Skip confirmation prompts and use defaults | false |
brutx-vue init
Initialize BrutxUI configuration in an existing Vue 3 project:
npx brutx-vue@latest initThe init command executes the following setup steps automatically:
- Detects project framework (Vite + Vue, Nuxt, etc.) and Tailwind CSS version (v4 / v3)
- Discovers global CSS entry files and aliases declared in
compilerOptions.pathsintsconfig.json - Installs core dependencies (
reka-ui,class-variance-authority,clsx,tailwind-merge,@lucide/vue) - Generates the
cn()utility function insrc/lib/utils.ts - Injects Neo-Brutalist design tokens and utility markers into your stylesheet
- Creates the
components.jsonconfiguration file and components directory - Detects Monorepo workspaces (pnpm / lerna / turbo) with support for root-level shared dependencies
For Vite projects, init looks for global CSS loaded by enabled, all-media stylesheet links in the root index.html and by local static module dependencies. If the app loads multiple stylesheets and exactly one loads Tailwind's main or utilities stylesheet directly or through local CSS imports, init selects that stylesheet. When it cannot identify a single entry, it checks conventional paths and lets you specify the file in the interactive prompt. An existing tailwind.css setting in components.json takes precedence.
init looks for the package manager starting from each dependency installation directory and walking up. In each directory it checks packageManager in package.json first, then lockfiles and pnpm-workspace.yaml. It recognizes bun.lock and bun.lockb for Bun and package-lock.json and npm-shrinkwrap.json for npm. It falls back to npm when it finds no package manager.
Options
| Flag | Description | Default |
|---|---|---|
-y, --yes | Skip confirmation prompts and use detected defaults | false |
-d, --defaults | Use official default configuration | false |
-c, --cwd <path> | Set working directory | Current directory |
-f, --force | Reconfigure the project and refresh managed design tokens | false |
-s, --silent | Silent output | false |
--vscode | Generate VS Code intelligent snippets | false |
--workspace-root <path> | Explicitly specify monorepo workspace root directory | Auto-detected |
Preview the initialization plan with the global flag or BRUTX_DRY_RUN=1. The preview lists file and directory changes and dependency commands for each target, without writing files or starting a package manager.
brutx-vue --dry-run init --yes --vscodeWhen initializing a workspace subpackage, the shared dependencies go to the workspace root and the component dependencies go to the subpackage. If dependency installation fails, init exits with an error. Re-run the same command to finish the outstanding steps and keep your configuration, aliases, and existing styles. Use --force to reconfigure an existing project and refresh the managed design tokens and requested snippets. Any existing configuration must pass validation. If init reports an invalid configuration, correct components.json manually before rerunning the command.
Component Lifecycle Management
brutx-vue add
Add components to your project. The command recursively resolves and downloads all dependencies (subcomponents, composables, and locales) in topological order:
npx brutx-vue@latest add [components...]If no component names are provided, the CLI launches an interactive checklist.
Examples
Add single or multiple components:
# Add a single component
npx brutx-vue@latest add button
# Add multiple components
npx brutx-vue@latest add button card dialog inputAdd all available components:
npx brutx-vue@latest add --allBy default, add keeps existing files whose contents differ from the registry. If the installation is partial, add reports the pending files. For example, run npx brutx-vue@latest update button to continue installing button.
Options
| Flag | Description | Default |
|---|---|---|
-a, --all | Add all available components from the registry | false |
-y, --yes | Skip confirmation prompts | false |
-o, --overwrite | Overwrite existing component files | false |
-m, --merge | When component already exists, merge with 3-way merge | false |
-p, --path <path> | Custom directory path to install component files into | Alias resolved path |
-c, --cwd <path> | Set working directory | Current directory |
-s, --silent | Silent output | false |
--dry-run | Simulate installation plan without writing files to disk | false |
-r, --registry <url> | Override registry path or URL | Official source |
--no-cache | Skip local registry cache, forcing remote fetch | false |
--offline | Offline mode: read only local cache, disable network requests | false |
--vscode | Update VS Code snippets library | false |
--filter <package> | Monorepo: Target workspace package in a monorepo | — |
--shared | Monorepo: Target the shared UI package in a monorepo | false |
Workspace installation targets
Initialize the target package with npx brutx-vue@latest init --cwd apps/web. You can then run add button --filter apps/web from the workspace root or add button from apps/web. Both use the target package's components.json, TypeScript aliases, and installation manifest. Run list, info, update, and remove from the target package or pass --cwd apps/web to those commands.
Target selection checks --shared, --filter, and workspace.targetPackage from the caller's configuration in that order. Without one of these selections, a workspace member uses itself. An invocation from the workspace root can select a detected shared UI package.
Component files always go into the target package. npm dependencies default to the target package (targetPackage). Set workspace.installDependenciesTo to caller to use the calling package or to both to install in both. The CLI checks the caller's installation policy first, then the target's. When invoked from the workspace root, caller means the root's package.json. If the caller and the target are the same package, the CLI installs dependencies once.
The manifest records the dependency destinations selected by explicit add commands for each component. When another calling package adds the same shared component with the caller policy, the CLI installs its dependencies for that caller and adds it to the existing destinations. Later, update from the target package installs new dependencies in all recorded destinations. Use update --dry-run to preview the installation commands. Older manifest entries without a recorded destination continue to use the target package for new dependencies.
For pnpm projects, each preview or retry command identifies the workspace root and member directory and can be run on its own. If the member is also a workspace root, running update there reuses the outer workspace recorded at installation. Relative locations remain valid when the whole workspace moves. Manifest entries with registered dependency targets (npmDependencyTargets) must also record the workspace root used for installation (npmDependencyWorkspace). When workspace dependency installation fails, the manifest also records the workspace root and target package identities it can establish.
If a dependency installation fails, rerun the original add or run update from the target package to install the remaining dependencies. If a recorded workspace member is removed, moved, or renamed, the CLI reports the original location and keeps that installation pending. Restore the member at the recorded location, then rerun update. If a pending entry contains only workspace member paths, explicitly select the original workspace and target package to register them before retrying.
Version Pinning with @version Syntax
With a custom GitHub Raw registry configured, the following command installs from the v1.2.0 tag and records the resolved source.
npx brutx-vue@latest add button@1.2.0- Custom Registries. Include the artifact directory in the GitHub Raw base URL, such as
https://raw.githubusercontent.com/{owner}/{repo}/main/registry. Forbutton@1.2.0, the CLI readsregistry/button.jsonfrom thev1.2.0tag. - Default Source Behavior: The official default source uses GitHub Release assets, which always fetch the latest stable release.
- When the registry URL already points to a release tag, such as a URL ending in
/releases/download/v1.2.0,add buttonrecords that tag. To follow the latest version, pass the base URL with--registrywhen runningupdate button --across-versions. - Version Mismatch Warning: If an already-installed component's version differs from the requested version, the CLI emits a non-blocking warning.
- Completing a Pinned Installation: If the pinned component is partially installed,
update buttonresumes the merge at the pinned version. Pass--across-versionsto update it to a different version. For a component pinned to a custom HTTP(S) registry without a recorded base URL (registryBaseSource), also pass the base URL with--registry <url>.
brutx-vue list
List all installed components in your project along with file counts and runtime dependencies:
npx brutx-vue@latest listThe Status column shows partial for partially installed components. With --json, the pendingFiles field lists the pending files.
Check for Updates
Pass --check-updates to verify component integrity against the remote registry and flag outdated components:
npx brutx-vue@latest list --check-updatesOptions
| Flag | Description | Default |
|---|---|---|
-c, --cwd <path> | Set working directory | Current directory |
--check-updates | Check remote registry integrity to display available updates | false |
--json | Output structured JSON format | false |
-r, --registry <url> | Specify registry path or URL for update checks | Configured source |
--no-cache | Skip cache when checking updates | false |
--offline | Use only cached data for checking updates | false |
-s, --silent | Silent output | false |
brutx-vue info
Inspect metadata for a specific component (dependency tree, files, category, examples, and local installation status):
npx brutx-vue@latest info <component>Queries use the registry recorded during installation when available and the project registry otherwise. Use button@1.2.0 to query a specific version.
Options
| Flag | Description | Default |
|---|---|---|
-c, --cwd <path> | Set working directory | Current directory |
--json | Output component details in JSON format | false |
-r, --registry <url> | Override the registry path or URL | Installation or project registry |
--offline | Offline mode (reads from cache) | false |
-s, --silent | Silent output | false |
brutx-vue diff
Compare local component implementations against registry files. Queries use the registry recorded during installation when available and the project registry otherwise. Use button@1.2.0 to compare against a specific version. When an installation manifest exists, removed applies only to registered files absent from the registry version being compared. Project-owned neighbors are preserved.
npx brutx-vue@latest diff [components...]Examples
Compare one or multiple components:
npx brutx-vue@latest diff button
npx brutx-vue@latest diff button card dialogCompare all installed components:
npx brutx-vue@latest diff --allOptions
| Flag | Description | Default |
|---|---|---|
--all | Compare all installed components | false |
-c, --cwd <path> | Set working directory | Current directory |
-r, --registry <url> | Override the registry path or URL | Installation or project registry |
--json | Output JSON report with complete file patches | false |
--no-cache | Skip cache and pull latest remote files | false |
--offline | Compare using cached data only | false |
-s, --silent | Silent output | false |
brutx-vue update
Update installed components to the latest registry version using 3-way merge to preserve your local custom edits:
npx brutx-vue@latest update [components...]Examples
Update specific components:
npx brutx-vue@latest update button cardUpdate all outdated components:
npx brutx-vue@latest update --allSimulate updates without writing to disk:
npx brutx-vue@latest update --all --dry-runConflict Strategy Options
By default, update writes conflict markers when local edits overlap upstream changes. A tracked file deleted locally stays absent. If upstream changed the file or its baseline is unavailable, the CLI reports an unresolved conflict. Files awaiting a merge retain their individual baselines and sources. The CLI records unresolved paths and continues applying changes to other files. It reports unresolved paths again on subsequent runs, including when a newer upstream version is available. Use --dry-run to preview the results. With --ci, both preview and execution exit with code 1 while conflicts remain.
After resolving the markers or restoring a missing file manually, run update again to record the resolution and merge any subsequent upstream changes. You can also rerun with --ours to keep the local side of a conflict or preserve a deletion, or --theirs to accept the upstream side or restore a file in conflict. Both strategies preserve edits that can be merged independently. Resolve existing markers manually if the upstream content corresponding to those markers is unavailable.
| Flag | Description | Default |
|---|---|---|
-a, --all | Update all outdated installed components | false |
-y, --yes | Skip confirmation prompts | false |
-c, --cwd <path> | Set working directory | Current directory |
--dry-run | Simulate update without writing to disk | false |
--across-versions | Allow pinned components to update to a different version | false |
--ours | Conflict Strategy: Accept all local changes in conflicts | false |
--theirs | Conflict Strategy: Accept all remote changes in conflicts | false |
-f, --force | Overwrite Mode: Force full overwrite, ignoring local changes | false |
--ci | CI Gate: Run in CI mode, exit with code 1 on unresolved conflicts | false |
-r, --registry <url> | Specify registry URL | Configured source |
--no-cache | Skip cache and download latest assets | false |
--offline | Use only cached data | false |
-s, --silent | Silent output | false |
When upgrading an existing CLI project, repair invalid v1 configuration by hand using the configuration reference, then verify it with brutx-vue doctor --category config. Missing per-file install records or unavailable baselines require checking the original install or version control before recovering a file. See file recovery for the records used by the CLI.
brutx-vue remove
Remove selected components and check for shared files that can be cleaned up.
npx brutx-vue@latest remove <components...>remove uses ownership in the installation manifest. It preserves project-owned and unregistered files, along with other components' pending merge paths. When removing the last registered owner of a shared file, the CLI checks project imports before offering to clean it up. Use list, info, or diff to inspect manually installed components. The project manages those files itself.
Options
| Flag | Description | Default |
|---|---|---|
-y, --yes | Skip confirmation prompts | false |
-c, --cwd <path> | Set working directory | Current directory |
--dry-run | Show which files would be removed without deleting | false |
-s, --silent | Silent output | false |
Maintenance & Diagnostics
brutx-vue doctor
Comprehensive project health check and automated self-healing engine. Audits configuration integrity, Tailwind tokens, directory structures, dependencies, and code tampering:
npx brutx-vue@latest doctor [options]Diagnostic Categories
- env: Runtime environment and package manager detection
- config: checks that
components.jsonexists and meets the v1 configuration format - tailwind: Tailwind CSS version and
--brutal-*token injection status - structure: Component directory layout and
cn()utility integrity - integrity: Component content hashes, file integrity, and audit log health
- custom: User-defined or third-party diagnostic rule plugins
Diagnostic and CI Gate Options
| Flag | Description | Default |
|---|---|---|
--fix | Automatically fix fixable diagnostic issues | false |
--fix-only <fixId> | Apply only the specified fix (see Fix ID table below) | — |
--dry-run | Combined with --fix: Preview repair plan (Plan Preview + Unified Diff) without disk writes | false |
--ci | CI mode: Defaults to github reporter when running in CI | false |
--reporter <type> | Reporter format (pretty, github, json, sarif, junit) | pretty |
--fail-on <level> | Exit with code 1 on specified issue level (error, warn, drift) | error |
--output-file <path> | Write diagnostic report to specified file path (e.g. SARIF / JUnit) | — |
--category <category> | Filter checks by category (env, config, tailwind, structure, integrity) | All |
--rule <ruleId> | Run specific diagnostic rule by ID | All |
--json | Output JSON report (equivalent to --reporter json) | false |
--offline | Skip remote registry network reachability probes | false |
--sbom | Generate CycloneDX 1.5 SBOM for installed components and exit (see Security Guide) | false |
--sbom-output <path> | Output path for generated SBOM file | ./brutx-sbom.json |
-c, --cwd <path> | Set working directory | Current directory |
-y, --yes | Skip confirmation prompts for fixes | false |
-s, --silent | Silent output | false |
With the JSON, SARIF, or JUnit reporter, stdout contains one complete report. Repair plans, file diffs, and execution summaries from --fix go to stderr. --silent suppresses those messages. A dry run displays the report. An actual run also writes the requested --output-file.
Fix ID Reference Table
Pass these IDs to --fix-only <fixId>:
| Fix ID | Scenario | Self-Healing Action |
|---|---|---|
inject-css-tokens | BrutxUI design tokens are missing or the separate token file is outside the global CSS import graph | Injects tokens according to tailwind.tokensFile and updates the global CSS entry |
create-components-dir | Components directory does not exist | Creates components target directory |
create-utils-file | src/lib/utils.ts missing | Generates utility file with cn() |
add-cn-function | Missing cn() export in utils file | Appends cn() export to utils file |
restore-integrity | Installed files are missing or differ from the installed snapshot | Restores the last installed contents one file at a time. |
remove-orphans | Baseline records identify formerly managed files with no remaining owner or source imports | Removes confirmed orphan files and preserves project-owned files |
integrity.registry-deps checks registry dependencies against the installation manifest. Bare names and @latest check whether the component is installed. An explicit version also checks the recorded version.
Run brutx-vue doctor --rule integrity.manifest-files --fix to restore missing files. Preview repairs to existing files with brutx-vue doctor --rule integrity.hash-drift --fix --dry-run and remove --dry-run to apply them.
The CLI uses each file’s recorded content source (installedFiles) to restore its original path, imports, asset paths, and any local edits accepted at update time. It uses the merge baseline when the installed contents match it and a separate snapshot when they differ. When a file has no content record or its contents are unavailable, the diagnostic lists the paths for manual recovery. Rerun the command after a partial repair to handle the remaining files.
Dry-Run Repair Plan Preview (--fix --dry-run)
A dry run previews the affected files and their unified diffs while preserving the files on disk. doctor reports configuration errors so you can correct the file manually.
npx brutx-vue@latest doctor --fix --dry-runbrutx-vue cache
Manage local component and registry metadata caches:
npx brutx-vue@latest cache clear [--max-age <days>]Examples
Clear all local caches:
npx brutx-vue@latest cache clearKeep active cache entries from the last 7 days and clear older entries:
npx brutx-vue@latest cache clear --max-age 7brutx-vue registry
Manage registry sources in components.json (registries array) with automated fallback redundancy:
List resolved sources and reachability
npx brutx-vue@latest registry listregistry list and doctor use BRUTX_REGISTRY_TOKEN or BRUTX_REGISTRY_HEADERS when probing HTTP(S) sources explicitly configured in components.json. A valid JSON headers object takes precedence over the Bearer token. Same-origin redirects keep credentials. Once a redirect crosses origins, the rest of the chain is anonymous. Probes for default sources are also anonymous. Use --offline to skip network probes.
Add a registry source
npx brutx-vue@latest registry add https://mirror.example.com/registryRemove a registry source (reverts to official default if all custom sources removed)
npx brutx-vue@latest registry remove https://mirror.example.com/registryConfiguration File: components.json
Running init generates components.json in your project root. When writing it by hand, set $schema, $version, style, tailwind.config, tailwind.css, aliases.components, aliases.utils, and aliases.composables. Use your project’s actual CSS path and aliases when adapting this example.
{
"$schema": "https://lidaixingchen.github.io/brutxui-vue3/schema.json",
"$version": 1,
"style": "brutalism",
"tailwind": {
"config": "",
"css": "src/index.css",
"tokensFile": "src/styles/tokens.css"
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"composables": "@/composables",
"locales": "@/locales",
"directives": "@/directives"
},
"workspace": {
"mode": "standalone",
"targetPackage": "ui",
"sharedUtilsPackage": "shared",
"installDependenciesTo": "targetPackage"
},
"registries": [
"https://github.com/lidaixingchen/brutxui-vue3/releases/latest/download"
],
"requireSignature": false,
"rules": {
"tailwind.tokens": "error",
"integrity.hash-drift": "warn"
},
"plugins": []
}Configuration Field Reference
| Field | Type | Description |
|---|---|---|
$schema | string | JSON Schema URL for IDE validation and autocompletion |
$version | number | Must be the number 1 |
style | string | Theme style, currently locked to brutalism |
tailwind.config | string | Tailwind configuration file path (empty string for Tailwind v4) |
tailwind.css | string | Global CSS entry file path |
tailwind.tokensFile | string | (Optional) Path to a separate design token stylesheet. When set, the global CSS entry must load it through @import |
aliases.components | string | Component import alias (default: @/components) |
aliases.utils | string | Utility functions import alias (default: @/lib/utils) |
aliases.composables | string | Composables import alias (default: @/composables) |
aliases.locales | string | (Optional) Locales dictionary import alias |
aliases.directives | string | (Optional) Vue custom directives import alias |
workspace | object | (Optional) Monorepo workspace configuration |
workspace.mode | string | Workspace mode: standalone / shared-package / app-local / hybrid |
workspace.targetPackage | string | Default workspace package name or package path relative to the workspace root |
workspace.installDependenciesTo | string | Dependency installation target: targetPackage / caller / both |
registries | string[] | (Optional) Multi-registry list with ordered fallback |
requireSignature | boolean | (Optional) Enforce strict Ed25519 signature verification |
trustedPublicKeys | array | (Optional) Project-level trusted Ed25519 SPKI public keys |
rules | object | (Optional) Diagnostic rule severity overrides ("off" / "warn" / "error") |
plugins | string[] | (Optional) Custom diagnostic rule plugins (relative path or npm package) |
The CLI resolves aliases using explicit mappings in TypeScript's compilerOptions.paths first. Declare custom import prefixes in the project's tsconfig.json or in a configuration it extends.
You can also use paths relative to the project root. For example, set aliases.components to src/components or ./src/components. For these paths, the CLI generates module imports relative to the importing file.
Programmatic API
Use brutx-vue/api to integrate the CLI into a tool. Load the project's v1 configuration and file paths with ProjectContext.load(cwd), then pass the context to writeComponentFiles(context, items, options).
For Nuxt, call injectNuxtConfig(content, { cssPath, componentsRelDir }). It returns status, changed, and content. Write the returned content when the status is injected, and ask for manual configuration when it is manual-required.
When building a ComponentMutationPlan, use the resolved itemSnapshots to keep each item and its registry source together, including transitive dependencies.
Global Options & Environment Variables
Global Flags
Place global options before the subcommand as shown below. You can also pass --dry-run after the subcommand.
npx brutx-vue@latest [global-options] <command> [command-options]--dry-run: Preview planned writes.createshows the template, directory, and initialization steps.registry add,registry remove, andcache clearshow the sources or cache entries they would change.--require-signature: Strict signature verification mode, failing immediately on invalid signatures--verbose-level <1|2|3>: Verbose level (1=steps,2=details/network,3=trace/stacks)-v/-vv/-vvv: Equivalent to--verbose-level 1 / 2 / 3--verbose: Show full error stacks (equivalent to-v)
Environment Variable Matrix
Configure global CLI behaviors via environment variables in CI, Docker, or scripts:
| Variable | Allowed Values | CLI Flag | Description |
|---|---|---|---|
BRUTX_OFFLINE | 1 | --offline | Enable offline mode, reading only local cache |
BRUTX_NO_CACHE | 1 | --no-cache | Skip local cache, always fetching from registry |
BRUTX_DRY_RUN | 1 | --dry-run | Activate global dry-run simulation |
BRUTX_VERBOSE | 1 / 2 / 3 | -v / -vv / -vvv | Set logging verbosity level |
BRUTX_REQUIRE_SIGNATURE | 1 | --require-signature | Enforce strict signature verification gate |
BRUTX_REGISTRY_PUBLIC_KEYS | JSON string | — | Inject additional trusted Ed25519 public keys |
BRUTX_CACHE_DIR | Directory string | — | Custom directory for local registry cache (default: .brutx/cache) |
BRUTX_CACHE_MAX | Positive integer | — | Maximum number of cached items before LRU eviction (default: 200) |
BRUTX_CACHE_MAX_BYTES | Integer bytes | — | Maximum total byte size for the cache directory |
CI/CD Pipeline Integration
Integrate brutx-vue doctor into GitHub Actions or GitLab CI as a quality and compliance gate.
GitHub Actions Workflow Example
Create .github/workflows/brutx-check.yml:
name: BrutxUI Integrity & Quality Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
diagnose:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Run Brutx Doctor Gate
run: |
# Fails PR if configuration errors, missing dependencies, or component code drift occur
npx brutx-vue@latest doctor --ci --fail-on drift --reporter github
- name: Generate Security SBOM
if: always()
run: |
npx brutx-vue@latest doctor --sbom --sbom-output ./brutx-sbom.json
- name: Upload SBOM Artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: brutx-sbom
path: ./brutx-sbom.jsonSupply Chain Security & Compliance Overview
BrutxUI source distribution includes built-in anti-tampering and compliance verification:
- Canonical Integrity Recomputation: Automatically recalculates SHA-256 hashes against manifest contents, guarding against CDN tampering and MITM attacks;
- Ed25519 Digital Signatures: Verifies releases against the official root public key out-of-the-box; supports smooth multi-key rotation for private enterprise registries;
- CycloneDX 1.5 SBOM: Generate comprehensive software bills of materials via
doctor --sbom, fully compatible with Dependency-Track, Snyk, and Trivy; - Local Audit Logs: Operations are recorded automatically in
.brutx/audit.log.
TIP
Explore Comprehensive Supply Chain Security
For cryptographic signature details, enterprise private key management, CycloneDX 1.5 specifications, and security audits, read our dedicated Supply Chain Security & Compliance Guide.
Error Codes & Troubleshooting Reference
When an operation fails, the CLI provides standardized error codes with actionable guidance:
| Error Code | Root Cause | Recommended Action |
|---|---|---|
CONFIG_NOT_FOUND | Missing components.json file | Run brutx-vue init in your project root |
CONFIG_INVALID | Invalid JSON or configuration values in components.json | Correct the reported problem in the indicated file and retry |
COMPONENT_NOT_FOUND | Component name not found in registry | Check spelling or run brutx-vue list to see available items |
REGISTRY_FETCH_FAILED | Cannot reach remote registry | Verify network connectivity or specify mirror with --registry |
REGISTRY_OFFLINE_UNAVAILABLE | Component is missing from cache in offline mode | Run online once to warm up cache or disable --offline |
REGISTRY_SIGNATURE_INVALID | Manifest signature failed trusted key validation | Possible tampering or mismatched key; verify BRUTX_REGISTRY_PUBLIC_KEYS |
REGISTRY_INTEGRITY_FAILED | Manifest canonical hash check mismatch | Refetch with --no-cache or rebuild custom registry |
REGISTRY_VERSION_UNSUPPORTED | @version used with non-raw registry URL | Remove @version or point --registry to a GitHub raw URL |
PATH_UNSAFE | Target path contains directory traversal | Check path aliases in components.json to ensure paths stay inside project |
WRITE_FAILED | File system write operation failed | Check target directory write permissions and ensure files are unlocked |
DOCTOR_FAILED | Doctor check failed --fail-on criteria | Review terminal diagnostic output and run doctor --fix |