@foundrykit/cli
v2.0.11
Published
The FoundryKit CLI initializes projects and installs components from the FoundryKit registry.
Readme
@foundrykit/cli
The FoundryKit CLI initializes projects and installs components from the FoundryKit registry.
Commands
init
Creates foundrykit.config.json, installs the utility helper, prepares target
directories, and updates package scripts for a Next.js project.
foundrykit initlist
Lists available registry components.
foundrykit list
foundrykit list -c primitives
foundrykit list -s buttonadd
Fetches a component from the registry, installs its files, installs any missing package dependencies, and prints a usage hint.
foundrykit add hero-minimal
foundrykit add button -oupdate
Reinstalls a component with overwrite semantics using the same registry-backed
installation flow as add.
foundrykit update hero-minimaldoctor
Validates that:
package.jsonexists- Next.js is detected
foundrykit.config.jsonexists and has the expected shape- the configured registry URL is reachable
foundrykit doctorRegistry Contract
The CLI uses the registry configured in foundrykit.config.json.
Canonical endpoints:
GET {registry}/registryGET {registry}/registry/{id}
Legacy /api/components endpoints may still exist on the host for
compatibility, but the CLI should be considered a /registry consumer.
Notes
- The CLI currently targets Next.js projects.
testruns in non-watch mode by default for CI friendliness.- Installation paths are controlled by
foundrykit.config.json.
