管理机器
在另一台计算机上激活许可证之前释放当前席位。
npx boardui@latest logout本演练假设您的项目中从未安装过 BoardUI。按顺序执行每个步骤,您将完成基础知识、免费依赖项、专业版访问以及您的第一个可供使用的组件或模板。
BoardUI 在 React 19 + Tailwind CSS v4 项目中工作。如果您还没有,最快的起点是新的 Next.js 应用程序:
npx create-next-app@latest my-appcd my-app
# Choose the defaults: TypeScript, Tailwind CSS, App Router, and @/* alias已经有兼容的项目?在其根文件夹中打开一个终端并继续下面的操作。对于 Vite、React Router 或 Astro,请参阅 框架指南.
对于共享 UI 包或自定义别名,请遵循 monorepo 配置指南 在运行 init 之前。免费和专业版组件使用相同的 boardui.json 配置。在共享包内运行组件安装,并在使用应用程序中安装全页模板。
npx boardui@latest init --pro确认设置提示。 CLI 安装 Tailwind v4 和 BoardUI 的运行时和 Pro 软件包,然后创建主题、排版、全局样式和共享实用程序。您不需要单独安装免费库。
替换根布局中的默认全局 CSS 导入,并加载 BoardUI 主题所使用的字体 Inter。如果项目中还没有任何工具编译 Tailwind v4,还需要加载它的 PostCSS 插件。create-next-app 16.4 及更高版本已经通过 @tailwindcss/turbopack 完成编译,init 只会在需要时打印 PostCSS 步骤。
// app/layout.tsximport { Inter } from "next/font/google";import "@/styles/globals.css"; // replaces the default "./globals.css" import
// BoardUI's theme reads its typeface from --font-inter (styles/theme.css).// The opsz axis renders display sizes in Inter Display, as on boardui.com.const inter = Inter({ variable: "--font-inter", subsets: ["latin"], axes: ["opsz"],});
export default function RootLayout({ children }: { children: React.ReactNode }) { return ( // On <html>, where theme.css resolves the font, in place of the Geist variables. <html lang="en" className={`${inter.variable} h-full antialiased`}> <body className="min-h-full flex flex-col">{children}</body> </html> );}npx boardui@latest login YOUR_LICENSE_KEY更换 YOUR_LICENSE_KEY 用文字键。请勿包含尖括号。 激活使用许可证中包含的机器席位之一。
npx boardui@latest add agent-progress calendar此命令安装两个示例。如果您只想要一个名称,请使用一个名称。 CLI 还获取它们所依赖的每个免费 BoardUI 组件或实用程序,并提供安装缺少的 npm 软件包 - 没有单独的免费组件安装步骤。
npx boardui@latest add template-ai-chat模板包括页面、组件源、免费依赖项、Pro 块和图像。您可以使用相同的许可证安装组件、模板或两者。
BoardUI 安装可编辑的源代码而不是锁定的组件包。要将已安装的项目替换为最新的 BoardUI 版本,请运行相同的命令 --overwrite 并首先查看所有本地自定义。
npx boardui@latest add calendar --overwrite在计算机之间移动您的许可证、自动安装或在需要帮助时直接联系我们。
在另一台计算机上激活许可证之前释放当前席位。
npx boardui@latest logout将您的许可证添加为秘密环境变量。不需要交互式登录。
BOARDUI_LICENSE_KEY在 X 上向我发送一条 DM,其中包含您的订单电子邮件以及所发生情况的简短描述。