GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SoraLabsOSS/cli: CLI to install components from any shadcn-compatible registry — defaults to Sora UI and other Sora Labs products

BranchesTags
Open more actions menu

Latest commit

 

History

99 Commits
99 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.cursor
.cursor
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
docs
docs
 
 
src
src
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
biome.jsonc
biome.jsonc
 
 
bun.lock
bun.lock
 
 
lefthook.yml
lefthook.yml
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
tsup.config.ts
tsup.config.ts
 
 

Repository files navigation

@soralabs/cli

Socket Badge

A CLI for installing components from any shadcn-compatible registry into your project — defaults to Sora UI and other Sora Labs products, but works against any registry via --registry <url>. Includes native registry authoring tools and Model Context Protocol (MCP) support for AI coding assistants.

Documentation

  • Official Documentation: cli.soralabs.studio — full CLI command reference, guides, and universal addressing.
  • Sora UI Docs: ui.soralabs.studio/docs/cli — documentation for using the CLI with Sora UI components.

Supported by

Sora CLI is supported by the open-source ecosystem. Special thanks to:

Mintlify

Usage

# Initialize styling and configuration (optional — add works without init too)
npx @soralabs/cli init

# Install a component
npx @soralabs/cli add text-effect

# Install multiple components
npx @soralabs/cli add text-effect draw-underline-link

# Interactive component picker
npx @soralabs/cli add

# List available components
npx @soralabs/cli list

# Search components by keyword or type
npx @soralabs/cli search text
npx @soralabs/cli search --type hook

# Inspect component metadata and dependencies
npx @soralabs/cli info text-effect

# Compare installed components against the registry
npx @soralabs/cli diff text-effect

# Diagnose project environment issues
npx @soralabs/cli doctor

# Configure AI coding assistant (Cursor, Claude Code, VS Code, Antigravity)
npx @soralabs/cli mcp init

# Compile local registry components into distribution JSON files
npx @soralabs/cli build

# Validate registry schema and local source file paths
npx @soralabs/cli validate

Options

npx @soralabs/cli add text-effect --path src/components/ui
npx @soralabs/cli add card --cwd packages/ui       # run as if started in packages/ui (monorepos)
npx @soralabs/cli add text-effect --force
npx @soralabs/cli add text-effect --registry ui                          # default; other Sora Labs products register here later
npx @soralabs/cli add some-item --registry https://any-shadcn-registry.com   # point at any shadcn-compatible registry
npx @soralabs/cli add text-effect --yes           # skip confirmation prompts (for CI/scripts)
npx @soralabs/cli add text-effect --dry-run       # preview changes without writing files
npx @soralabs/cli add text-effect --silent        # only print summary lines
npx @soralabs/cli add text-effect --view          # print file contents instead of writing
npx @soralabs/cli build -o public/r               # custom build output directory
npx @soralabs/cli validate --json                 # machine-readable validation report
npx @soralabs/cli mcp init --client cursor        # configure specific AI client
npx @soralabs/cli --version

How it works

The CLI fetches a shadcn-compatible registry (<product-url>/r/registry.json, <product-url>/r/<name>.json) built by that product's own build step, resolves the dependency tree, automatically transforms React Server Component directives ("use client"), writes files into your project, and installs npm dependencies with your detected package manager (bun/pnpm/yarn/npm).

  • No Mandatory Init: Components can be installed into any project with a package.json immediately — aliases and paths are detected on the fly.
  • Icon Transformer: Automatically converts <IconPlaceholder /> tags and lucide-react imports to match your project's configured iconLibrary (Lucide, Radix UI, Tabler, Hugeicons, Phosphor, Remix Icon) and installs target icon dependencies.
  • Environment Variables: Automatically identifies envVars from registry items and appends missing variables into .env.local and .env.example without overwriting existing user values.
  • Tailwind Config & CSS Updating (v3 & v4): Updates tailwind.config.ts/js plugins (e.g. tailwindcss-animate) and keyframes for Tailwind v3 projects, or maps them into @theme inline and @plugin for Tailwind v4 CSS stylesheets.
  • RSC Optimization: In Next.js App Router projects, components utilizing client hooks are automatically supplied with "use client". In non-RSC environments (Vite, Astro), unused "use client" directives are cleanly stripped.
  • AI-Native with MCP: Run npx @soralabs/cli mcp to start a native Model Context Protocol server, or npx @soralabs/cli mcp init to wire component discovery and installation tools directly into Cursor, Claude Code, VS Code, or Antigravity.
  • Registry Authoring: Build your own UI libraries with sora build (or sora-cli build) and verify schema integrity with sora validate (or sora-cli validate). Both sora and sora-cli aliases are supported.

In a monorepo, --cwd <path> (or -c) runs commands as if started inside <path> — it detects that workspace's own tsconfig.json/components.json aliases and writes components there without having to cd into it first.

Development

bun install
bun run build      # bundles src/index.ts -> dist/index.js via tsup
bun run typecheck
bun test           # run test suite (428+ unit tests)
bun x ultracite check
node dist/index.js list

About

CLI to install components from any shadcn-compatible registry — defaults to Sora UI and other Sora Labs products

cli.soralabs.studio

Topics

clicomponentsmotionreactshadcnsoratailwindcssui

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.