Napacitor CLI - nap help
打印 CLI 用法帮助,列出所有命令与选项。
npx nap help
npx nap(不带参数)、--help 与 -h 输出的内容相同。
示例输出(节选):
用法:nap <命令> [参数]
命令:
init [appId] [appName] [--web-dir <dir>] 初始化应用,写入 napacitor.config.json
add <maui> 从内置模板生成 MAUI 宿主工程
assets [maui] 应用图标/启动屏/主题颜色注入宿主(Resizetizer)
copy [maui] 复制 Web 构建产物到宿主 wwwroot 并宿主化改造
sync [maui] copy + 重新生成 napacitor.build.props
open <maui> 用系统默认方式打开宿主工程
build [maui] [--target <t>] [-c <cfg>] 构建宿主工程(dotnet build)
clean [maui] [--target <t>] [-c <cfg>] 清理宿主构建产物(dotnet clean)
run [maui] [--target <t>] [-c <cfg>] 构建并运行宿主(dotnet build -t:Run)
list 列出应用已安装的 @napacitor/* 包
help 显示本帮助