这个 weaver 命令行工具 上诉人。 。 。 .
说明
@appweaver/cli 提供 weaver 二进制驱动 Appweaver 项目开发工作的二进制:,
开始、 代码生成、 迁移、 种子、 一发任务、 OpenAPI 导出、 测试数据库设置、 配置
检查、模块和软件包更新。 它运行
当为 Bun 运行时间配置工程时, 在 Bun 下自动 .
安装
npm install @appweaver/cli
正如脚手架项目一样,这是依赖性而不是依赖性,因为生产图像运行
weaver start 财务报告和审定财务报表 weaver migrate。 。 。 .
CLI只需要一个 @appweaver/core。 。 。 . weaver generate, (中文(简体) ), weaver seed 财务报告和审定财务报表 weaver test setup 使用该
@appweaver/data 一揽子项目, weaver openapi 联合国 @appweaver/web,然后在
它不见了.
使用量
weaver build # compile the TypeScript project
weaver start --watch # start in watch mode, restarting on changes
weaver generate # generate types and the Prisma schema from the models
weaver migration new <name> # create a database migration
weaver migrate # apply the pending migrations
weaver seed --build-project # build the project, then run the seeders
weaver openapi --format yaml # export the OpenAPI specification
weaver run src/tasks/report.ts # run the default export of a file with the application, then exit
weaver test setup # create the temporary test database (NODE_ENV=test)
weaver config schema # write the JSON Schema of appweaver.json from the enabled modules
weaver config print # print every config value with its source, the secrets hidden
weaver config check # validate the config, i.e. NODE_ENV=prod in CI (exit 1 on an error)
weaver module add redis docker # add modules to the project, from the scaffold templates
weaver module add appweaver-gcs # install a module package without its scripts, print its providers
weaver module new audit-log # create the local module src/modules/audit-log/
weaver module remove docker # remove a module, deleting its files
weaver upgrade --dry-run # list the package upgrades without installing them
长旗是克巴布克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克 --no-* 否定--no-skill, (中文(简体) ),
--no-registry, (中文(简体) ), --no-prune) (中文(简体) ). 运行 weaver <command> --help 对命令的选项,或 查看
CLI 参考。 。 。 .
文档
许可证
苍蝇是 麻省理工学院执照。 。 。 .