regify generate

Transform your components into shareable JSON registries.

The generate command is the core of Regify. It scans your source files, extracts their metadata, and packages them into a format that is 100% compatible with the shadcn CLI.

Command Options

--inputRequired

The path to the input file or directory to scan. Supports .ts, .tsx, .js, .jsx.

--output

Override the default output directory defined in your regify.json.

--name

Specify a custom name for the generated registry file. Defaults to the filename. Only work if input is a file.

--rawjson

Output raw JSON to console. If true, the --output flag will be ignored.

Examples

Generating from a directory:

regify generate --input ./src/components

Generating a specific component:

regify generate --input ./src/components/button.tsx --name my-button