landa-loom-cli
v1.0.1
Published
Loom Blocks CLI
Readme
Loom Blocks CLI 🧱
A powerful, shadcn-like CLI tool for easily adding custom Next.js/React components from your private or public registry directly into your project.
🚀 Quick Start
You don't even need to install it! Just use npx in the root of your Next.js project:
npx landa-loom-cli add blocks/hero/product-hero(This command will fetch the product-hero component and place it into src/modules/common/components/blocks/hero/product-hero.tsx)
⚙️ Configuration (Optional)
By default, the CLI fetches components from the default Loom Blocks registry. If you have your own private/custom registry, you can configure the CLI by adding these variables to your .env or .env.local file:
# Point to your custom GitHub Raw URL (or any HTTP server)
REGISTRY_URL=https://raw.githubusercontent.com/YourName/loom-blocks-registry/main/components
# (Optional) If your GitHub repository is Private, add your Personal Access Token
GITHUB_PAT=github_pat_YOUR_TOKEN_HERE🛠 Usage
To add any component from your registry, just pass its relative path:
npx landa-loom-cli add blocks/blog/style-1
npx landa-loom-cli add blocks/features/style-2📦 Global Installation
If you prefer to install the CLI globally on your system to use the shorter loom command:
npm install -g landa-loom-cli
# Now you can just type:
loom add blocks/hero/product-heroBuilt with ❤️ for modern Next.js and Strapi ecosystems.
