add command resolves the dependency tree for requested components, writes source files into your project, and installs npm dependencies with your detected package manager (bun, pnpm, yarn, or npm).
Usage
Quick Examples
Options
--cwd, -c <path>
Runs the command as if started inside <path>.
Specifically designed for monorepos: detects tsconfig.json and components.json inside the specified workspace (e.g., packages/ui or apps/web), installing dependencies into that workspace’s package.json.
--path <path>
Overrides the target directory where component files are written without modifying root configuration context.
(Default: components/sora-ui/)
--registry <name|url>
Product registry key (default: ui) or an external HTTPS registry endpoint.
[!NOTE] External registries must usehttps://. Insecurehttp://is allowed exclusively forlocalhostand127.0.0.1during local registry testing.
--yes, -y
Skips the installation confirmation prompt.
[!IMPORTANT] When executing the CLI inside CI/CD pipelines, Docker builds, or automated agent scripts (where there is no interactive TTY),addwithout--yeswill exit cleanly without modifying files. Pair--yeswith--forcein automated environments.