# @deconz-community/cli

> A command line tool for working with DDFs.

Latest version **1.22.1** (published 2026-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @deconz-community/cli
pnpm add @deconz-community/cli
yarn add @deconz-community/cli
bun add @deconz-community/cli
```

Provides the command `ddf-tools`.

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.22.1 |
| Published | 2026-11-09 |
| First published | 2023-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=16.0.0 |
| Dependencies | 14 |
| Unpacked size | 32.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Zehir |
| Maintainers | mimiix, zorimyll |
| Keywords | cli, conbee, deconz, drezden |

## Links

- npm: https://www.npmjs.com/package/@deconz-community/cli
- Repository: https://github.com/deconz-community/ddf-tools
- Homepage: https://github.com/deconz-community/ddf-tools/tree/main/packages/cli
- Issues: https://github.com/deconz-community/ddf-tools/issues/
- Funding: https://github.com/sponsors/Zehir
- npm.io page: https://npm.io/package/@deconz-community/cli

## Dependencies (14)

- [ora](https://npm.io/package/ora.md) ^10.0.0
- [zod](https://npm.io/package/zod.md) ^4.6.7
- [uuid](https://npm.io/package/uuid.md) ^14.0.3
- [chalk](https://npm.io/package/chalk.md) ^6.0.1
- [base64-js](https://npm.io/package/base64-js.md) ^1.5.1
- [commander](https://npm.io/package/commander.md) ^15.1.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.3.3
- [simple-git](https://npm.io/package/simple-git.md) ^4.0.2
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.4.0
- [zod-validation-error](https://npm.io/package/zod-validation-error.md) ^5.0.0
- [@commander-js/extra-typings](https://npm.io/package/@commander-js/extra-typings.md) ^15.1.0
- [@deconz-community/ddf-bundler](https://npm.io/package/@deconz-community/ddf-bundler.md) ^0.35.1
- [@deconz-community/ddf-validator](https://npm.io/package/@deconz-community/ddf-validator.md) ^2.37.0
- [@deconz-community/store-api-client](https://npm.io/package/@deconz-community/store-api-client.md) ^0.1.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.22.1 (latest) — 2026-11-09
- 1.22.0 — 2026-11-08
- 1.21.0 — 2026-10-21
- 1.20.0 — 2026-04-22
- 1.19.0 — 2026-01-18
- 1.18.1 — 2025-10-21
- 1.17.0 — 2024-10-16
- 1.16.2 — 2024-10-16
- 1.16.1 — 2024-09-08
- 1.16.0 — 2024-06-17
- 1.15.2 — 2024-05-31
- 1.15.1 — 2024-05-28
- 1.15.0 — 2024-05-27
- 1.14.1 — 2024-05-26
- 1.14.0 — 2024-05-25
- … 33 more at https://npm.io/package/@deconz-community/cli/versions

## README

# Command line tool

A command line tool for working with DDFs.

## Installation

```bash
npm install -g @deconz-community/cli
```

## Usage

## With install

```bash
ddf-tools --help
```

## Without install (run slower)

```bash
npx @deconz-community/cli --help
```

## From the source

```bash
pnpm preview --help
```

### Help

You can see the help by running:

```bash
ddf-tools --help
```

### Commands

#### Validate

The validate command will validate the DDFs in the given directory.
Make sure both the DDF and the Generics files are present in the directory.
You can use the flag `--no-skip` to validate the DDFs with option ddfvalidate set to false.

```bash
ddf-tools validate --help
ddf-tools validate --directory /path/to/ddf
```

#### Bundle

The bundle command will bundle the DDFs from the given json DDF source file.
Make sure the DDFs are valid before bundling them.

```bash
ddf-tools bundle --help
ddf-tools bundle -o ./output/ devices/ikea/starkvind_air_purifier.json
ddf-tools bundle -o ./output/ devices/
ddf-tools bundle --upload --store-token <token> devices/
```

##### Argument <path> (required)

The path to the json DDF source file or a directory containing the json DDF source files.
If a directory is provided, all json files in the directory will be bundled.

##### -g, --generic <path>

The directory where all generic files are located.
If not provided, the bundler will look for the generic directory in parent directories.

##### -o, --output <path>

The directory where the bundled DDFs will be saved.
Defaults to the DDF directory.

##### --no-validate

Skip the validation of the DDFs.

##### --private-key <privateKey>

The private key to sign the DDFs with. If upload enabled your private key will be used to sign the DDFs.

##### --upload

Upload the DDFs to the DDF server.

##### --store-url <url>

The url of the DDF server to upload the DDFs to. By default it's using the global DDF server at https://ddf.cryonet.io.

##### --store-token <token>

The token to authenticate with the DDF server.

##### --store-bundle-status <status>

Status of the bundle (alpha, beta, stable) (default: "alpha")

##### --file-modified-method <method>

Method to use to get the last modified date of the files (gitlog, mtime, ctime) (default: "gitlog")

##### --debug

Enable debug mode.

#### Store uploads

Upload an existing DDB bundle or upload every `.ddb` file in a directory. Both commands
report success or failure for each file; uploads default to the `alpha` state.

```bash
ddf-tools upload ./output/device.ddb --store-url https://store.example --store-token <token>
ddf-tools bulk upload ./output/ --store-url https://store.example --store-token <token> --state beta
```

`--state` accepts `alpha`, `beta`, or `stable`. Beta and stable publishing requires a
contributor account.

#### Bulk operations

The bulk command will run various operation on DDF files.

##### uuid operation

The uuid operation will generate a new UUID for each DDF file in the given directory.
Limited to 100 files at a time.

```bash
ddf-tools bulk uuid --store-token <token> ./devices/
```

---
_Source: https://npm.io/package/@deconz-community/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
