# @dasha\.ai/cli 中文文档

规范地址：https://npmcn.com/package/%40dasha.ai/cli/

版本：0\.10\.0
npm 元数据更新时间：2026-09-18T07:10:07.350Z
中文译文更新时间：2026-11-11T12:49:35.372Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40dasha.ai/cli
原文对照：https://npmcn.com/package/%40dasha.ai/cli/?lang=original
项目主页：https://github.com/dasha-ai/dasha#readme

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：99 kB，32 个文件
- TypeScript 类型：未声明
- Node.js 要求：\>=24\.0\.0
- 运行依赖：5 个
- 首次发布：2020-12-29T09:38:29.396Z
- 最新版本发布：2026-09-18T07:10:07.171Z
- 近 30 天下载量：2790（2026-10-12 至 2026-11-10，npm 官方下载统计）
- 已发布版本数：31（近 12 个月 3 个）

## 中文简介

管理 Dasha 应用程序和用户账户的命令行界面工具

## 安装

```sh
npm install @dasha.ai/cli
```

也可以使用：`pnpm add @dasha.ai/cli`、`yarn add @dasha.ai/cli`、`bun add @dasha.ai/cli`

## README

# 达莎CLI

用于管理的命令行工具 [达莎 大赦国际](https://dasha.ai/) 应用程序和用户账户.

所有特性在方案上也可使用 [达莎SDK](https://www.npmjs.com/package/@dasha.ai/sdk)。 。 。 .

## 安装

全球安装:

```
> npm install --global "@dasha.ai/cli"
```

每个项目的安装(发射时间: `npx dasha`:

```
> npm install --save-dev "@dasha.ai/cli"
```

## 使用量

使用 `dasha <command> --help` 为特定命令寻求帮助.

```
Usage: dasha [options] [command]

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  account         Dasha.AI account management
  app             application management
  diagnostics     diagnostic information
  group           group settings management
  nlu             nlu service api
  profiler        Data download manager for the profiler
  sip             SIP configuration settings
  tts             text-to-speech synthesis
  help [command]  display help for command
```

```
Usage: dasha account [options] [command]

Dasha.AI account management

Options:
  -h, --help                                          display help for command

Commands:
  add [options] [accountName]                         add a new account
  create [options] [accountName]                      Deprecated. use 'add'
  info [accountName]                                  print account details
  list                                                list all known accounts
  login|register [options] [accountName]              log into an account
  remove [options] <accountName>                      remove an account
  rename [options] <oldAccountName> <newAccountName>  rename an account
  start-trial [options] [accountName]
  use <accountName>                                   set an account as current
  help [command]                                      display help for command
```

```
Usage: dasha diagnostics [options] [command]

diagnostic information

Options:
  -h, --help      display help for command

Commands:
  limits
  queues
  help [command]  display help for command
```

```
Usage: dasha group [options] [command]

group settings management

Options:
  -h, --help                    display help for command

Commands:
  create [options] <groupName>  add a new group
  delete [options] <groupName>  delete a group
  list [options]                list all existing groups
  update [options] <groupName>  update group settings
  help [command]                display help for command
```

```
Usage: dasha nlu [options] [command]

nlu service api

Options:
  -h, --help                  display help for command

Commands:
  recognize [options] [text]  train dataset and parse text with provided skills
  train [options]             train dataset configured by provided .dashaapp file
  help [command]              display help for command
```

```
Usage: dasha profiler [options] [command]

Data download manager for the profiler

Options:
  -h, --help          display help for command

Commands:
  download [options]  Download the profiler data
  help [command]      display help for command
```

```
Usage: dasha sip [options] [command]

SIP configuration settings

Options:
  -h, --help                              display help for command

Commands:
  create-inbound [options] <configName>   create an inbound SIP configuration
  delete-inbound [options] <configName>   delete an inbound SIP configuration
  list-inbound                            list available inbound SIP configurations
  update-inbound [options] <configName>   update an inbound SIP configuration
  create-outbound [options] <configName>  create an outbound SIP configuration
  delete-outbound [options] <configName>  delete an outbound SIP configuration
  list-outbound                           list available outbound SIP configurations
  update-outbound [options] <configName>  update an outbound SIP configuration
  help [command]                          display help for command
```

```
Usage: dasha tts [options] [command]

text-to-speech synthesis

Options:
  -h, --help                   display help for command

Commands:
  synthesize [options] <text>
  help [command]               display help for command
```

```
Usage: dasha app [options] [command]

application management

Options:
  -h, --help               display help for command

Commands:
  deploy [path]            deploy an application to the platform
  download <appId> [path]  Download the application package
  info <appId>             Get the application information
  list                     List of deployed applications
  run [options] [path]     run single conversation
  help [command]           display help for command
```

```
Usage: dasha app deploy [options] [path]

deploy an application to the platform

Options:
  -h, --help  display help for command
```

```
Usage: dasha app download [options] <appId> [path]

Download the application package

Options:
  -h, --help  display help for command
```

```
Usage: dasha app info [options] <appId>

Get the application information

Options:
  -h, --help  display help for command
```

```
Usage: dasha app list [options]

List of deployed applications

Options:
  -h, --help  display help for command
```

```
Usage: dasha app run [options] [path]

run single conversation

Options:
  --chat                                             connect via chat
  --sip <sipconfig>                                  connect via sip
  --tts <ttsconfig>                                  tts config (default: "default")
  --stt <sttconfig>                                  stt config (default: "default")
  --noiseVolume <noiseVolume>                        Noise volume: 0..1
  --interlocutorPauseDelay <interlocutorPauseDelay>  Length of expected pause in seconds at the end of human speech
  --debug-log                                        Show debug logs
  --input <input...>                                 Input arguments in form arg1=value1 arg2=value2 and etc
  --inputFile <inputFile>                            Read input arguments from file
  -h, --help                                         display help for command
```

## 许可证

此套件在 [Apache 许可证,2.0版本](http://www.apache.org/licenses/LICENSE-2.0)。 。 。 .

## 常见问题

### @dasha\.ai/cli 是什么？

管理 Dasha 应用程序和用户账户的命令行界面工具

### 如何安装 @dasha\.ai/cli？

在项目目录运行 npm install @dasha\.ai/cli，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 dasha，可以用 npx dasha 直接运行。

### @dasha\.ai/cli 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/dasha\.ai\_\_cli 是否存在。

### @dasha\.ai/cli 需要什么版本的 Node\.js？

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

### @dasha\.ai/cli 可以商用吗？

@dasha\.ai/cli 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @dasha\.ai/cli 的下载量有多少？

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

### @dasha\.ai/cli 还在维护吗？

最新版本 0\.10\.0 发布于 2026/09/18（1 个月前）；至今共发布 31 个版本，其中过去 12 个月发布了 3 个；首次发布于 2020/12/29。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

