The nimbus-docs CLI does three things: list what’s in the registry, install it, and lint your MDX content.
nimbus-docs list
Lists every installable component, utility, and feature.
npx nimbus-docs list yarn dlx nimbus-docs list pnpm dlx nimbus-docs list bunx nimbus-docs list Filter by type:
nimbus-docs list --type ui
nimbus-docs list --type lib
nimbus-docs list --type featureRunning nimbus-docs add with no slug shows the same list.
nimbus-docs add <slug>
Two install modes — the CLI picks based on the slug’s type.
Components and utilities
For registry:ui and registry:lib slugs, the CLI resolves dependencies, copies files into your repo, and installs any npm packages they need.
npx nimbus-docs add badge yarn dlx nimbus-docs add badge pnpm dlx nimbus-docs add badge bunx nimbus-docs add badge Resolve dependencies
Walks the slug’s registryDependencies and any npm dependencies it needs.
Copy files
Drops each file into the right path under src/components/ui/, src/lib/, or wherever the entry declares.
Update package.json
Adds npm dependencies if they’re not already present.
Pass --yes to skip overwrite prompts:
nimbus-docs add badge --yesOnce installed, the component lives in your repo. Edit freely — there’s no upstream API to break.
Features
For registry:feature slugs, there’s nothing to copy. The recipe is a markdown prompt the agent reads, adapts to your project, and applies.
nimbus-docs add 404-pageIf the CLI detects a coding agent in the environment, it prints the recipe to stdout for the agent to consume. Otherwise it prints pipe instructions you can run yourself:
nimbus-docs add 404-page --print | claude
nimbus-docs add 404-page --print | codexUse --print to force the markdown output, skipping detection.
nimbus-docs lint
Walks src/content/, runs every registered authoring rule, prints diagnostics, and exits non-zero when any error-severity finding survives. The build is never gated by lint — drafts that fail lint still render under astro dev.
nimbus-docs lintFlags:
nimbus-docs lint --format=json # agent-readable diagnostics
nimbus-docs lint --rule=nimbus/single-h1 # run one rule only
nimbus-docs lint --fix # apply auto-fixes in place
nimbus-docs lint --quiet # errors only, suppress warningsSeverity overrides live with the integration (nimbus(config, { rules })); in-file disables (nimbusDisableRules frontmatter, inline comments) work with no config.
Help and version
nimbus-docs --help
nimbus-docs --version