GitHub

init

Initialize a registry or project with jsrepo.

npx jsrepo init

Usage

Choose to initialize a registry or project:

npx jsrepo init

Initialize a project:

npx jsrepo init --project

Initialize a registry:

npx jsrepo init --registry

Initialize a project with registries:

npx jsrepo init github/ieedan/std

Options

--repos Deprecated

The repositories to install the blocks from. (For project setup)

Usage

npx jsrepo init --repos github/ieedan/std github/ieedan/shadcn-svelte-extras
--no-watermark

Sets the watermark config key to false. (For project setup)

Usage

npx jsrepo init --no-watermark
--tests

Sets the tests config key to true. (For project setup)

Usage

npx jsrepo init --tests
--formatter

Configure the formatter used when adding and updating blocks. (prettier, biome) (For project setup)

Usage

npx jsrepo init --formatter prettier
-P, --project

Takes you through the steps to initialize a project.

Usage

npx jsrepo init --project
-R, --registry

Takes you through the steps to initialize a registry.

Usage

npx jsrepo init --registry
--script

The name of the build script. (For registry setup)

Usage

npx jsrepo init --script build:registry
-y, --yes

Skips confirmation prompts. (Not including permissions prompts)

Usage

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

Usage

npx jsrepo add --no-cache
--cwd

Run the current command on the provided directory absolute or relative.

Usage

npx jsrepo init --cwd ./packages/blocks
-h, --help

Help with the command.

Usage

npx jsrepo init --help