Skip to content

Getting Started / CLI

Developer CLI

Add Nodus DS components to any project with a single command. No config files, no wrappers — source files are copied directly into your project, styled with your existing Tailwind setup.

PreviewThe CLI is not yet published. The commands below show the intended distribution API — release details TBD.

Quick demo

Three commands, zero config

terminal — nodus-ds workflow

Command reference

All commands

Every command supports --dry to preview what would happen without writing files.

$ npx nodus-ds add AgentCard

Copy a component into your project. No install required — source files are copied directly.

terminal — nodus-ds add

Flags

Global options

FlagCommandDescription
--dry, -dallPreview what would happen without writing any files
--list, -laddList all available components by category
--dir <path>addOverride destination directory for copied component
--format <css|ts>tokensToken output format: CSS variables or TypeScript const
--out <file>tokensCustom output file path for token export
--version, -vglobalShow CLI version

Architecture

How it works

01
Registry manifest

Component paths are read from public/registry.json, generated at build time from registry-extended.ts. No runtime lookups.

02
Source copy

The component .tsx file is copied into your project. You own it — no npm package to update, no black-box imports.

03
Token dependency

Components import via CSS custom properties (var(--ds-*)). Token files are the only npm dependency.

04
Zero lock-in

Once copied, the file is yours. Fork it, extend it, delete it. The CLI only scaffolds — it doesn't own your code.

Development

Run the CLI locally

When working inside the nodus-ds repo, use npm run cli instead of npx nodus-ds to skip the build step.

# Run locally (no build required)
$ npm run cli -- add --list
$ npm run cli -- add AgentCard --dry
$ npm run cli -- init --dry
$ npm run cli -- tokens --format ts --dry
 
# Build CLI bundle for npx distribution
$ npm run build:cli

Related