Skip to content

CLI ​

bash
npx bootcn <command> [options]

Commands ​

CommandWhat it does
initCreate bootcn.json, the directories, and install tokens
add <names...>Install items and their dependencies
listList registry items, marking the installed ones
info <name>Show an item's files, dependencies and requirements
diff [names...]Compare your installed files with the registry (read-only)

Options ​

OptionMeaning
--cwd <path>Project directory (default: the current directory)
--registry <url-or-path>Registry https:// URL or local directory
-y, --yesNever prompt; accept defaults; skip changed files
--overwriteReplace files that differ from the registry
--dry-runShow what would happen, write nothing
--verboseShow stack traces on errors
-v, --versionPrint the CLI version

Updating a component ​

Installed files are yours, so the CLI never changes them silently. To see what changed in the registry since you installed:

bash
npx bootcn diff dialog

Lines starting with - are in your copy, + in the registry. To take the registry version (this replaces your edits):

bash
npx bootcn add dialog --overwrite

Safety ​

  • Files are only written inside the project directory. Paths with .., absolute paths and symlinks that point outside are rejected.
  • Remote registries must use https://, and redirects to other hosts are refused.
  • Downloaded code is written to disk, never executed.

Exit codes ​

CodeMeaning
0Success
1User or configuration error
2Registry or network error
3Partial install

Released under the MIT License. Not affiliated with Bootstrap or shadcn/ui.