CLI
add
Add items from registries to your project.
jsrepo addUsage
Add an item from the registries in your jsrepo.config file:
jsrepo add buttonIf the item exists in multiple registries you will be prompted to select which one you want to add:
◆ Multiple registries contain button. Please select one:
│ ● button (@ieedan/shadcn-svelte-extras)
│ ○ button (@ai/elements)
└Add an item from a specific registry:
jsrepo add @ieedan/shadcn-svelte-extras/buttonAdd all items from a specific registry:
jsrepo add @ieedan/shadcn-svelte-extras --allAdd all items from every registry in your jsrepo.config file:
jsrepo add --allOptions
--all
Add all items from every registry:
jsrepo add --all--cwd
The current working directory:
jsrepo add button --cwd ./my-project--expand
Expands the diff so you see the entire file:
jsrepo add button --expand--max-unchanged
Maximum unchanged lines that will show without being collapsed:
jsrepo add button --max-unchanged 20--overwrite
Overwrite files without prompting:
jsrepo add button --overwrite--registry
The registry to add items from:
jsrepo add button --registry @ieedan/shadcn-svelte-extras--verbose
Include debug logs:
jsrepo add button --verbose--with-docs
Add items with docs:
jsrepo add --with-docs--with-examples
Add items with examples:
jsrepo add --with-examples--with-tests
Add items with tests:
jsrepo add --with-tests--yes
Skip the confirmation prompt:
jsrepo add button --yes