@dextinity/create-app

中文文档
1.264.0发布于 2026/11/11BSD-2-Clause近 30 天下载 3779

Command-line interface to create a new Dextinity application

原始使用文档
文档目录5 节
  1. Usage
  2. Arguments
  3. Commands
  4. For developers
  5. Development

@dextinity/create-app

This is a command-line interface to create a new Dextinity application. It sets up a project with the necessary configuration and files to get started quickly.

Usage

To create a new Dextinity app, run the following command:

npx @dextinity/create-app <project-name>

Arguments

The following arguments can be passed to customize the project setup:

  • project-name (required): Specifies the name of the project. It will be used as the directory name for the project.
  • --no-install: Disables the automatic installation of dependencies.
  • --repository <repository>: Repository to clone from. Defaults to https://github.com/vivid-planet/dextinity-starter.git.
  • --branch <branch>: Branch to checkout. Defaults to main.
  • --verbose or -v: Enables extra console logs for verbose output.
  • --version or -V: Outputs the version number.
  • --help or -h: Display help for the command.

Example usage with arguments

Create a new Dextinity app with the name "my-project" and enable verbose logging:

npx @dextinity/create-app my-project -v

Create a new Dextinity app with a different repository and branch:

npx @dextinity/create-app my-project -r https://github.com/my-company/dextinity-starter.git -b next

Commands

The following commands can be used to customize the project setup:

  • remove-site: Removes the site from the project.

Example usage:

npx @dextinity/create-app remove-site

For developers

Development

To test the script locally, run the following commands:

  1. Start the development process:
    npm start
    
  2. Run the script:
    node ./bin/index.js
    

Testing a close to production usage of the CLI can be done by calling npm link in the create-app/ directory. Then npx @dextinity/create-app can be used.

版本与发布记录

@dextinity/create-app 共发布 45 个版本,首次发布于 2026/08/13;过去 12 个月发布了 45 个版本。

版本发布日期距今
1.264.0latest2026/11/11今天
1.263.02026/11/111 天前
1.262.02026/11/101 天前
1.261.02026/11/092 天前
1.260.02026/11/092 天前
1.259.02026/11/075 天前

关于 @dextinity/create-app 的常见问题

@dextinity/create-app 是什么?

Command-line interface to create a new Dextinity application

如何安装 @dextinity/create-app?

在项目目录运行 npm install @dextinity/create-app,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 create-app,可以用 npx create-app 直接运行。

@dextinity/create-app 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dextinity__create-app 是否存在。

@dextinity/create-app 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js 24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@dextinity/create-app 可以商用吗?

@dextinity/create-app 使用 BSD-2-Clause 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@dextinity/create-app 的下载量有多少?

根据 npm 官方下载统计,@dextinity/create-app 在 2026/10/12 – 2026/11/10 这 30 天内被下载 3,779 次,日均约 126 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dextinity/create-app 还在维护吗?

最新版本 1.264.0 发布于 2026/11/11(今天);至今共发布 45 个版本,其中过去 12 个月发布了 45 个;首次发布于 2026/08/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。