Skip to content

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:

bash
npx brutx-vue@latest <command>

Alternatively, install it locally as a development dependency:

bash
pnpm add -D brutx-vue
# or
npm install -D brutx-vue

Project Setup ​

brutx-vue create ​

Scaffold a brand-new Vue 3 project pre-configured with BrutxUI from scratch:

bash
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:

bash
npx brutx-vue@latest create my-app

Use the Nuxt template and specify bun as the package manager:

bash
npx brutx-vue@latest create my-nuxt-app --template nuxt --package-manager bun

Options ​

FlagDescriptionDefault
-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 directoryCurrent directory
-y, --yesSkip confirmation prompts and use defaultsfalse

brutx-vue init ​

Initialize BrutxUI configuration in an existing Vue 3 project:

bash
npx brutx-vue@latest init

The init command executes the following setup steps automatically:

  1. Detects project framework (Vite + Vue, Nuxt, etc.) and Tailwind CSS version (v4 / v3)
  2. Discovers global CSS entry files and aliases declared in compilerOptions.paths in tsconfig.json
  3. Installs core dependencies (reka-ui, class-variance-authority, clsx, tailwind-merge, @lucide/vue)
  4. Generates the cn() utility function in src/lib/utils.ts
  5. Injects Neo-Brutalist design tokens and utility markers into your stylesheet
  6. Creates the components.json configuration file and components directory
  7. 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 ​

FlagDescriptionDefault
-y, --yesSkip confirmation prompts and use detected defaultsfalse
-d, --defaultsUse official default configurationfalse
-c, --cwd <path>Set working directoryCurrent directory
-f, --forceReconfigure the project and refresh managed design tokensfalse
-s, --silentSilent outputfalse
--vscodeGenerate VS Code intelligent snippetsfalse
--workspace-root <path>Explicitly specify monorepo workspace root directoryAuto-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.

bash
brutx-vue --dry-run init --yes --vscode

When 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:

bash
npx brutx-vue@latest add [components...]

If no component names are provided, the CLI launches an interactive checklist.

Examples ​

Add single or multiple components:

bash
# Add a single component
npx brutx-vue@latest add button

# Add multiple components
npx brutx-vue@latest add button card dialog input

Add all available components:

bash
npx brutx-vue@latest add --all

By 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 ​

FlagDescriptionDefault
-a, --allAdd all available components from the registryfalse
-y, --yesSkip confirmation promptsfalse
-o, --overwriteOverwrite existing component filesfalse
-m, --mergeWhen component already exists, merge with 3-way mergefalse
-p, --path <path>Custom directory path to install component files intoAlias resolved path
-c, --cwd <path>Set working directoryCurrent directory
-s, --silentSilent outputfalse
--dry-runSimulate installation plan without writing files to diskfalse
-r, --registry <url>Override registry path or URLOfficial source
--no-cacheSkip local registry cache, forcing remote fetchfalse
--offlineOffline mode: read only local cache, disable network requestsfalse
--vscodeUpdate VS Code snippets libraryfalse
--filter <package>Monorepo: Target workspace package in a monorepo—
--sharedMonorepo: Target the shared UI package in a monorepofalse

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.

bash
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. For button@1.2.0, the CLI reads registry/button.json from the v1.2.0 tag.
  • 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 button records that tag. To follow the latest version, pass the base URL with --registry when running update 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 button resumes the merge at the pinned version. Pass --across-versions to 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:

bash
npx brutx-vue@latest list

The 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:

bash
npx brutx-vue@latest list --check-updates

Options ​

FlagDescriptionDefault
-c, --cwd <path>Set working directoryCurrent directory
--check-updatesCheck remote registry integrity to display available updatesfalse
--jsonOutput structured JSON formatfalse
-r, --registry <url>Specify registry path or URL for update checksConfigured source
--no-cacheSkip cache when checking updatesfalse
--offlineUse only cached data for checking updatesfalse
-s, --silentSilent outputfalse

brutx-vue info ​

Inspect metadata for a specific component (dependency tree, files, category, examples, and local installation status):

bash
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 ​

FlagDescriptionDefault
-c, --cwd <path>Set working directoryCurrent directory
--jsonOutput component details in JSON formatfalse
-r, --registry <url>Override the registry path or URLInstallation or project registry
--offlineOffline mode (reads from cache)false
-s, --silentSilent outputfalse

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.

bash
npx brutx-vue@latest diff [components...]

Examples ​

Compare one or multiple components:

bash
npx brutx-vue@latest diff button
npx brutx-vue@latest diff button card dialog

Compare all installed components:

bash
npx brutx-vue@latest diff --all

Options ​

FlagDescriptionDefault
--allCompare all installed componentsfalse
-c, --cwd <path>Set working directoryCurrent directory
-r, --registry <url>Override the registry path or URLInstallation or project registry
--jsonOutput JSON report with complete file patchesfalse
--no-cacheSkip cache and pull latest remote filesfalse
--offlineCompare using cached data onlyfalse
-s, --silentSilent outputfalse

brutx-vue update ​

Update installed components to the latest registry version using 3-way merge to preserve your local custom edits:

bash
npx brutx-vue@latest update [components...]

Examples ​

Update specific components:

bash
npx brutx-vue@latest update button card

Update all outdated components:

bash
npx brutx-vue@latest update --all

Simulate updates without writing to disk:

bash
npx brutx-vue@latest update --all --dry-run

Conflict 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.

FlagDescriptionDefault
-a, --allUpdate all outdated installed componentsfalse
-y, --yesSkip confirmation promptsfalse
-c, --cwd <path>Set working directoryCurrent directory
--dry-runSimulate update without writing to diskfalse
--across-versionsAllow pinned components to update to a different versionfalse
--oursConflict Strategy: Accept all local changes in conflictsfalse
--theirsConflict Strategy: Accept all remote changes in conflictsfalse
-f, --forceOverwrite Mode: Force full overwrite, ignoring local changesfalse
--ciCI Gate: Run in CI mode, exit with code 1 on unresolved conflictsfalse
-r, --registry <url>Specify registry URLConfigured source
--no-cacheSkip cache and download latest assetsfalse
--offlineUse only cached datafalse
-s, --silentSilent outputfalse

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.

bash
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 ​

FlagDescriptionDefault
-y, --yesSkip confirmation promptsfalse
-c, --cwd <path>Set working directoryCurrent directory
--dry-runShow which files would be removed without deletingfalse
-s, --silentSilent outputfalse

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:

bash
npx brutx-vue@latest doctor [options]

Diagnostic Categories ​

  • env: Runtime environment and package manager detection
  • config: checks that components.json exists 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 ​

FlagDescriptionDefault
--fixAutomatically fix fixable diagnostic issuesfalse
--fix-only <fixId>Apply only the specified fix (see Fix ID table below)—
--dry-runCombined with --fix: Preview repair plan (Plan Preview + Unified Diff) without disk writesfalse
--ciCI mode: Defaults to github reporter when running in CIfalse
--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 IDAll
--jsonOutput JSON report (equivalent to --reporter json)false
--offlineSkip remote registry network reachability probesfalse
--sbomGenerate 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 directoryCurrent directory
-y, --yesSkip confirmation prompts for fixesfalse
-s, --silentSilent outputfalse

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 IDScenarioSelf-Healing Action
inject-css-tokensBrutxUI design tokens are missing or the separate token file is outside the global CSS import graphInjects tokens according to tailwind.tokensFile and updates the global CSS entry
create-components-dirComponents directory does not existCreates components target directory
create-utils-filesrc/lib/utils.ts missingGenerates utility file with cn()
add-cn-functionMissing cn() export in utils fileAppends cn() export to utils file
restore-integrityInstalled files are missing or differ from the installed snapshotRestores the last installed contents one file at a time.
remove-orphansBaseline records identify formerly managed files with no remaining owner or source importsRemoves 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.

bash
npx brutx-vue@latest doctor --fix --dry-run

brutx-vue cache ​

Manage local component and registry metadata caches:

bash
npx brutx-vue@latest cache clear [--max-age <days>]

Examples ​

Clear all local caches:

bash
npx brutx-vue@latest cache clear

Keep active cache entries from the last 7 days and clear older entries:

bash
npx brutx-vue@latest cache clear --max-age 7

brutx-vue registry ​

Manage registry sources in components.json (registries array) with automated fallback redundancy:

List resolved sources and reachability ​

bash
npx brutx-vue@latest registry list

registry 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 ​

bash
npx brutx-vue@latest registry add https://mirror.example.com/registry

Remove a registry source (reverts to official default if all custom sources removed) ​

bash
npx brutx-vue@latest registry remove https://mirror.example.com/registry

Configuration 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.

json
{
  "$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 ​

FieldTypeDescription
$schemastringJSON Schema URL for IDE validation and autocompletion
$versionnumberMust be the number 1
stylestringTheme style, currently locked to brutalism
tailwind.configstringTailwind configuration file path (empty string for Tailwind v4)
tailwind.cssstringGlobal CSS entry file path
tailwind.tokensFilestring(Optional) Path to a separate design token stylesheet. When set, the global CSS entry must load it through @import
aliases.componentsstringComponent import alias (default: @/components)
aliases.utilsstringUtility functions import alias (default: @/lib/utils)
aliases.composablesstringComposables import alias (default: @/composables)
aliases.localesstring(Optional) Locales dictionary import alias
aliases.directivesstring(Optional) Vue custom directives import alias
workspaceobject(Optional) Monorepo workspace configuration
workspace.modestringWorkspace mode: standalone / shared-package / app-local / hybrid
workspace.targetPackagestringDefault workspace package name or package path relative to the workspace root
workspace.installDependenciesTostringDependency installation target: targetPackage / caller / both
registriesstring[](Optional) Multi-registry list with ordered fallback
requireSignatureboolean(Optional) Enforce strict Ed25519 signature verification
trustedPublicKeysarray(Optional) Project-level trusted Ed25519 SPKI public keys
rulesobject(Optional) Diagnostic rule severity overrides ("off" / "warn" / "error")
pluginsstring[](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.

bash
npx brutx-vue@latest [global-options] <command> [command-options]
  • --dry-run: Preview planned writes. create shows the template, directory, and initialization steps. registry add, registry remove, and cache clear show 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:

VariableAllowed ValuesCLI FlagDescription
BRUTX_OFFLINE1--offlineEnable offline mode, reading only local cache
BRUTX_NO_CACHE1--no-cacheSkip local cache, always fetching from registry
BRUTX_DRY_RUN1--dry-runActivate global dry-run simulation
BRUTX_VERBOSE1 / 2 / 3-v / -vv / -vvvSet logging verbosity level
BRUTX_REQUIRE_SIGNATURE1--require-signatureEnforce strict signature verification gate
BRUTX_REGISTRY_PUBLIC_KEYSJSON string—Inject additional trusted Ed25519 public keys
BRUTX_CACHE_DIRDirectory string—Custom directory for local registry cache (default: .brutx/cache)
BRUTX_CACHE_MAXPositive integer—Maximum number of cached items before LRU eviction (default: 200)
BRUTX_CACHE_MAX_BYTESInteger 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:

yaml
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.json

Supply 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 CodeRoot CauseRecommended Action
CONFIG_NOT_FOUNDMissing components.json fileRun brutx-vue init in your project root
CONFIG_INVALIDInvalid JSON or configuration values in components.jsonCorrect the reported problem in the indicated file and retry
COMPONENT_NOT_FOUNDComponent name not found in registryCheck spelling or run brutx-vue list to see available items
REGISTRY_FETCH_FAILEDCannot reach remote registryVerify network connectivity or specify mirror with --registry
REGISTRY_OFFLINE_UNAVAILABLEComponent is missing from cache in offline modeRun online once to warm up cache or disable --offline
REGISTRY_SIGNATURE_INVALIDManifest signature failed trusted key validationPossible tampering or mismatched key; verify BRUTX_REGISTRY_PUBLIC_KEYS
REGISTRY_INTEGRITY_FAILEDManifest canonical hash check mismatchRefetch with --no-cache or rebuild custom registry
REGISTRY_VERSION_UNSUPPORTED@version used with non-raw registry URLRemove @version or point --registry to a GitHub raw URL
PATH_UNSAFETarget path contains directory traversalCheck path aliases in components.json to ensure paths stay inside project
WRITE_FAILEDFile system write operation failedCheck target directory write permissions and ensure files are unlocked
DOCTOR_FAILEDDoctor check failed --fail-on criteriaReview terminal diagnostic output and run doctor --fix

Brute force builds.