latheui
v0.2.1
Published
Set up Lathe in a project: adds the @latheui registry to components.json, and your license key for Lathe Pro.
Maintainers
Readme
latheui
Sets up Lathe in a project that uses the shadcn CLI, so every component installs by name.
npx latheui initRun it in your project's root, next to components.json. It adds the @latheui registry to
components.json. Then install anything:
npx shadcn@latest add @latheui/buttonNothing is installed globally or added to your dependencies. Run it once per project.
Lathe Pro
Pass your license key to install Pro items the same way:
npx latheui init --key <your license key>It also:
- checks your license key,
- has the
@latheuiregistry send it with each request, - saves the key to
.env.localasLATHE_LICENSE_KEY, - makes sure
.env.localis ignored by git, - remembers the key on this computer, in
~/.lathe/config.json.
npx shadcn@latest add @latheui/data-tableIn your next project, plain npx latheui init finds the saved key and sets up Pro too. It also
picks up LATHE_LICENSE_KEY if it's set in your environment, as on CI.
--no-savesets up the project without remembering the key.npx latheui logoutforgets the saved key. Projects you already set up keep theirs.
Your key is in your purchase email. Setup guide: https://latheui.dev/docs/pro
