CLI
Install editable Aria UI component source with the @ariaui/cli command line tool.
The Aria UI CLI installs editable component source into your React app. Generated files stay in your project so you can style, review and change them as local code.
Run the CLI
Run from your app directory with Node.js 20.18.1 or later. The CLI detects your package manager for dependency installation. Use --cwd apps/web to target an app from a monorepo root.
npx @ariaui/cli@latest init
npx @ariaui/cli@latest add button dialog
pnpm dlx @ariaui/cli@latest add button
You can also install @ariaui/cli globally and use the ariaui executable.
Add components
Omit component names to open the interactive picker. Use --dry-run to inspect changes without writing files, or info to print the detected framework, configuration and resolved paths:
npx @ariaui/cli@latest add
npx @ariaui/cli@latest add button --dry-run
npx @ariaui/cli@latest info
When an existing component file would be replaced, interactive mode asks for consent. Pass --overwrite to replace without that prompt; noninteractive mode skips existing files unless overwrite is enabled. The CLI installs required dependencies using the detected package manager. Use --help on a command for its full options.
Configuration
init creates components.json in the project root. It records style, stylesheet, TypeScript/RSC settings and import aliases. For example, a Next.js App Router app using Tailwind CSS v4 may use:
Use the actual stylesheet and import aliases for your app. Tailwind CSS v3 also needs its configuration file path. aliases.ui controls the component destination; tsx: false selects JavaScript output. The configuration is validated against the current strict root configuration contract; do not add obsolete private configuration fields.
Registry source
The built-in @ariaui namespace resolves remote item files from the repository's registry directory. ARIAUI_REGISTRY_URL overrides that base directory, not a single registry.json payload:
ARIAUI_REGISTRY_URL=https://example.com/registry npx @ariaui/cli@latest add button
Configured namespaces and direct registry item URLs are supported. Fetch failures are errors; the CLI does not silently substitute a different registry.
Agent usage
The mcp subcommand runs the current stdio MCP server:
Its tools are get_project_registries, list_items_in_registries, search_items_in_registries, view_items_in_registries, get_item_examples_from_registries, get_add_command_for_items and get_audit_checklist. They inspect registry information, examples and installation guidance; there is no separate dedicated component-installation mutation tool. Run the returned add command through your normal command workflow when you want to install source.