GitHub

add

Add blocks to your project.

npx jsrepo add

Usage

Choose a block to add from the registries in your jsrepo.json file.

npx jsrepo add

Add a partially qualified block using the registries in your jsrepo.json file.

npx jsrepo add utils/math

Add a fully qualified block.

npx jsrepo add github/ieedan/std/utils/math

Include another registry in the blocks list.

npx jsrepo add --repo github/ieedan/std

Options

--repo

The repository to download the blocks from.

Usage

npx jsrepo add --repo github/ieedan/std
-A, --allow

Allow jsrepo to download code from the provided repo. This skips the initial confirmation prompt when attempting to download a block from a registry not listed in the jsrepo.json file.

Usage

npx jsrepo add github/ieedan/std/utils/math --allow
-y, --yes

Skips confirmation prompts. (Not including permissions prompts)

Usage

npx jsrepo add --yes
--verbose

More verbose logging. (May be used to troubleshoot issues)

Usage

npx jsrepo add --verbose
--cwd

Run the current command on the provided directory absolute or relative.

Usage

npx jsrepo add --cwd ./sites/docs
-h, --help

Help with the command.

Usage

npx jsrepo add --help