dxDigitexa UI
HomeDocsComponentsExamplesAI
Get started
Sections
IntroductionComponentsInstallationThemingCLIFor AI agentsChangelog
Examples
Workspace overviewSettings
Components
AccordionActivity feedAlertAlert dialogAvatarBadgeBreadcrumbButtonCalendarCalendar viewCardCheckboxCollapsibleComboboxCommandContext menuData tableDate pickerDialogDropdown menuEmpty stateFieldHover cardInputInput groupKanbanKbdLabelMeterPaginationPopoverPriorityProgressRadio groupScroll areaSelectSeparatorSheetSidebarSkeletonSliderSpinnerStatus iconSwitchTableTabsTask rowTextareaTimelineToastToggleToggle groupTooltip

CLI

Add components to your project with dx.

dx is a zero-dependency Node script served by the docs site. Run it with curl and node; nothing is installed globally.

curl -fsSL https://ui.digitexa.com/dx.mjs | node --input-type=module - <command>

init

Detects the project layout and writes dx.json. add runs it for you the first time.

dx init

It finds src/, the import alias in tsconfig.json or jsconfig.json, and your global stylesheet.

add

dx add button dialog data-table

Writes each item and everything it needs, in dependency order: helpers like utils, the theme, other components it imports. Installs missing npm packages with the package manager your project uses (detected from the lockfile, including monorepo roots).

Existing files are skipped unless you pass --overwrite.

list

dx list

Options

Option
--cwd <dir>Project folder (default: current directory)
--overwriteReplace files that already exist
--skip-installDon't install npm packages; print them instead
--registry <url or dir>Read items from another registry
-y, --yesDon't print the detected settings
-h, --helpShow help

dx.json

dx.json
{
  "registry": "https://ui.digitexa.com/r",
  "paths": { "ui": "src/components/ui", "lib": "src/lib", "styles": "src/app" },
  "css": "src/app/globals.css",
  "aliases": { "ui": "@/components/ui", "lib": "@/lib" }
}

Edit it if detection guessed wrong. Imports inside the copied files are rewritten to these aliases.

Safety

The CLI only writes inside your project: targets with .., absolute paths or unknown roots are refused, so a compromised registry can't write elsewhere.

ThemingFor AI agents
On this page
initaddlistOptionsdx.jsonSafety