fetty
v1.2.0
Published
Install components from your GitHub repository aka shadcn CLI for your own UI library
Readme
How to use
Login
npx fetty login? Enter your GitHub personal access token: [hidden]
✓ Successfully logged in as mrzmyr[!NOTE] The token is stored using
keytarand will be used to fetch components from your GitHub repository. Required permissions: "Contents: Read-only".
Initialize
First you need to have a GitHub repository with components to install from, see fetty-components-repository for example.
npx fetty init? Enter the GitHub repository (owner/repo): mrzmyr/fetty-registry
? Where should components be installed locally? src/components/cf
✓ Configuration saved successfullyInstall component
npx fetty add buttonFetching https://github.com/mrzmyr/fetty-registry/tree/main/src/components/button
✔ Installed `button` to `src/components/cf/button`Use component
import { Button } from "src/components/cf/button";API
npx fetty login
Add GitHub credentials
npx fetty init
Create
fetty.config.jsonfile
npx fetty add
Fetch components and install them to your project
npx fetty logout
Remove stored credentials
