CLI

list

List items available in registries.

jsrepo list

list outputs a list of available registry items.

Usage

List items from the registries in your jsrepo.config file:

jsrepo list

List items from one or more specific registries:

jsrepo list @ieedan/std
jsrepo list @ieedan/std github/owner/repo

Items are always grouped under their registry:

@ieedan/std
  math
  result

github/owner/repo
  button — Button
    A reusable button component.

Each item shows its identifier (name). When a title or description is available, those are included as well.

Output as JSON:

jsrepo list @ieedan/std --json
{
	"registries": [
		{
			"url": "@ieedan/std",
			"items": [
				{
					"name": "math"
				},
				{
					"name": "result",
					"title": "Result",
					"description": "A Result type for error handling."
				}
			]
		}
	]
}

Options

--all

Include when-needed and index items. By default, only when-added items are shown:

jsrepo list @ieedan/std --all

--detail

Control how much information is shown for each item. Accepts basic (default) or full:

jsrepo list @ieedan/std --detail full

With --detail full, each item also includes type, add policy, categories, dependencies, env vars, meta, and files:

@ieedan/std
  math
    type: util
    add: when-added
    registry dependencies: types
    files:
      math.ts
      math.test.ts [test]

When combined with --json --detail full, the full manifest item data is included in the JSON output.

--json

Output as JSON instead of formatted text:

jsrepo list @ieedan/std --json

--cwd

The current working directory:

jsrepo list --cwd ./my-project

--verbose

Include debug logs:

jsrepo list @ieedan/std --verbose