Execute a block as a script with arguments.
jsrepo exec
Choose a script to execute from the registries in your jsrepo.json file:
jsrepo exec
x
alias:
jsrepo x
Execute with args:
jsrepo exec -- argument --yes
Execute a partially qualified script using the registries in your jsrepo.json file:
jsrepo exec github/ieedan/scripts/general/hello
Include another registry in the scripts list:
jsrepo exec --repo github/ieedan/scripts
--
--
is a special option that will cause any args after it to be passed to the script instead of jsrepo.
jsrepo exec -- argument --yes
--repo
The repository to download the scripts from.
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.
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.
jsrepo exec --no-cache
--verbose
More verbose logging. (May be used to troubleshoot issues)
jsrepo exec --verbose
--cwd
Run the current command on the provided directory absolute or relative.
jsrepo exec --cwd ./sites/docs
-h, --help
Help with the command.
jsrepo exec --help