GitHub

exec

Execute a block as a script with arguments.

npx jsrepo exec

Usage

Choose a script to execute from the registries in your jsrepo.json file:

npx jsrepo exec

x alias:

npx jsrepo x

Execute with args:

npx jsrepo exec -- argument --yes

Execute a partially qualified script using the registries in your jsrepo.json file:

npx jsrepo exec github/ieedan/scripts/general/hello

Include another registry in the scripts list:

npx jsrepo exec --repo github/ieedan/scripts

Options

--

-- is a special option that will cause any args after it to be passed to the script instead of jsrepo.

Usage

npx jsrepo exec -- argument --yes
--repo

The repository to download the scripts from.

Usage

npx jsrepo exec --repo github/ieedan/scripts
-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 exec --repo github/ieedan/scripts --allow
--no-cache

Prevents caching the git provider state. Useful if the cache is incorrect due to changing the default branch for a repository or changing a tag into a head or vise versa.

Usage

npx jsrepo add --no-cache
--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 exec --cwd ./sites/docs
-h, --help

Help with the command.

Usage

npx jsrepo exec --help