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
--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