Initialize a registry or project with jsrepo.
jsrepo init
Choose to initialize a registry or project:
jsrepo init
Initialize a project:
jsrepo init --project
Initialize a registry:
jsrepo init --registry
Initialize a project with registries:
jsrepo init @ieedan/std
--reposDeprecated The repositories to install the blocks from. (For project setup)
jsrepo init --repos @ieedan/std @ieedan/shadcn-svelte-extras
--no-watermarkSets the watermark config key to false. (For project setup)
jsrepo init --no-watermark
--testsSets the tests config key to true. (For project setup)
jsrepo init --tests
--formatterConfigure the formatter used when adding and updating blocks. (prettier, biome) (For project setup)
jsrepo init --formatter prettier
-P, --projectTakes you through the steps to initialize a project.
jsrepo init --project
-R, --registryTakes you through the steps to initialize a registry.
jsrepo init --registry
--scriptThe name of the build script. (For registry setup)
jsrepo init --script build:registry
-y, --yesSkips confirmation prompts. (Not including permissions prompts)
jsrepo init --yes
--no-cachePrevents 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 init --no-cache
--cwdRun the current command on the provided directory absolute or relative.
jsrepo init --cwd ./packages/blocks
-h, --helpHelp with the command.
jsrepo init --help