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 github/ieedan/std
--repos
Deprecated The repositories to install the blocks from. (For project setup)
jsrepo init --repos github/ieedan/std github/ieedan/shadcn-svelte-extras
--no-watermark
Sets the watermark config key to false. (For project setup)
jsrepo init --no-watermark
--tests
Sets the tests config key to true. (For project setup)
jsrepo init --tests
--formatter
Configure the formatter used when adding and updating blocks. (prettier, biome) (For project setup)
jsrepo init --formatter prettier
-P, --project
Takes you through the steps to initialize a project.
jsrepo init --project
-R, --registry
Takes you through the steps to initialize a registry.
jsrepo init --registry
--script
The name of the build script. (For registry setup)
jsrepo init --script build:registry
-y, --yes
Skips confirmation prompts. (Not including permissions prompts)
jsrepo init --yes
--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 init --no-cache
--cwd
Run the current command on the provided directory absolute or relative.
jsrepo init --cwd ./packages/blocks
-h, --help
Help with the command.
jsrepo init --help