命令行工具
@lark-ui/core

安装

Lark 命令行工具可通过 npx 使用,无需安装。

npx @lark-ui/core help

命令

区块

把可复制粘贴的区块安装到你的项目中,以便完全自定义。

# Initialize lark-ui.json configuration
npx @lark-ui/core init

# List all available blocks
npx @lark-ui/core blocks

# Install a block to your project
npx @lark-ui/core add PageHeader

组件注册表

直接在终端中查看组件文档。

# List all Lark components with categories
npx @lark-ui/core ls

# Get detailed documentation for a component
npx @lark-ui/core doc Button

# Get documentation for all components
npx @lark-ui/core docs

试一试

在下面的交互式终端中输入命令,体验命令行工具。

Lark 命令行工具 v1.0.0 - 输入 "lark-ui help" 查看命令
$

提示:使用方向键翻阅命令历史,Ctrl+L 清空终端