@dcl/sdk-commands

中文文档
7.33.0发布于 2026/11/06Apache-2.0构建来源已验证近 30 天下载 1.4万

CLI tools for Decentraland scene development.

原始使用文档
文档目录15 节
  1. Overview
  2. Installation
  3. Usage
  4. Create a New Scene
  5. Start Development Server
  6. Build Scene
  7. Deploy Scene
  8. Export Static Content
  9. Pack Smart Wearable
  10. Manage Quests
  11. Development
  12. Building the Package
  13. Testing
  14. Development Commands
  15. Documentation

@dcl/sdk-commands

CLI tools for Decentraland scene development.

Overview

This package provides command-line tools for creating, developing, and deploying Decentraland scenes. It includes commands for:

  • Initializing new scene projects
  • Starting a local development server
  • Building scenes
  • Testing and validating scenes
  • Managing scene deployments

Installation

npm install @dcl/sdk-commands

Usage

The SDK commands are used via npx to run the version installed in your project:

Create a New Scene

npx @dcl/sdk-commands init

Start Development Server

npx @dcl/sdk-commands start

Build Scene

npx @dcl/sdk-commands build

Deploy Scene

npx @dcl/sdk-commands deploy

Large scenes upload in batches when the target server supports it. While deploying, the linker server exposes the deployment at /api/deploy: GET returns its state (JSON, or server-sent events with Accept: text/event-stream) and DELETE cancels it. Cancelling needs the X-Deploy-Token header, set with --deploy-token <token> (16+ characters) or random per run; the browser gets it in the linker URL fragment (/#token=...).

Export Static Content

npx @dcl/sdk-commands export-static

Pack Smart Wearable

npx @dcl/sdk-commands pack-smart-wearable

Manage Quests

npx @dcl/sdk-commands quests

Development

Building the Package

# Build all packages in the monorepo
make build

Testing

# Run all tests in the monorepo
make test

# Run tests for a specific file
make test FILES="--watch packages/@dcl/sdk-commands/src/path/to/test.spec.ts"

Development Commands

For local development:

# Clean all build artifacts and reinstall dependencies
make clean && make install

# Format and fix linting issues
make lint-fix

# Update dependencies across packages
make sync-deps

Documentation

For detailed documentation on using the CLI tools, visit:

版本与发布记录

@dcl/sdk-commands 共发布 1,156 个版本,首次发布于 2023/02/20;过去 12 个月发布了 318 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
7.33.0latest2026/11/066 天前
7.32.1-42077145652.commit-f6053ef2026/11/066 天前
7.32.1-42074770886.commit-f6053ef2026/11/066 天前
7.32.1-41691874543.commit-3063788auth-server2026/11/047 天前
7.31.1-41669733463.commit-b1b1d792026/11/048 天前
7.32.02026/11/048 天前

其他发布通道:ci → 7.8.16,protocol-squad → 7.25.1-30828532396.commit-0c215c3,experimental → 7.27.1-34382248832.commit-ca3b679,experimental-bevy → 7.31.1-40604676255.commit-cb3ed84,experimental-bevy-auth-server → 7.31.1-40606969412.commit-24c05c3,auth-server → 7.32.1-41691874543.commit-3063788。

关于 @dcl/sdk-commands 的常见问题

@dcl/sdk-commands 是什么?

CLI tools for Decentraland scene development.

如何安装 @dcl/sdk-commands?

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

@dcl/sdk-commands 支持 TypeScript 吗?

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

@dcl/sdk-commands 需要什么版本的 Node.js?

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

@dcl/sdk-commands 可以商用吗?

@dcl/sdk-commands 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@dcl/sdk-commands 的下载量有多少?

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

@dcl/sdk-commands 还在维护吗?

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