1.11.1 • Published 13 hours ago

@deconz-community/cli v1.11.1

Weekly downloads
-
License
MIT
Repository
github
Last release
13 hours ago

Command line tool

A command line tool for working with DDFs.

Installation

npm install -g @deconz-community/cli

Usage

With install

ddf-tools --help

Without install (run slower)

npx @deconz-community/cli --help

From the source

pnpm preview --help

Help

You can see the help by running:

ddf-tools --help

Commands

Validator

The validator 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.

ddf-tools validator --help
ddf-tools validator --directory /path/to/ddf

Bundler

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

ddf-tools bundler --help
ddf-tools bundler --generic devices/generic/ devices/ikea/starkvind_air_purifier.json
Argument (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 (required)

The directory where all generic files are located.

-o, --output

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

--no-validate

Skip the validation of the DDFs.

--private-key

The private key to sign the DDFs with.

--upload

Upload the DDFs to the DDF server. Currently no public DDF server is available. The server is still in WIP.

--store-url

The url of the DDF server to upload the DDFs to.

--store-token

The token to authenticate with the DDF server.

1.11.1

13 hours ago

1.11.0

3 days ago

1.9.1

6 days ago

1.9.4

6 days ago

1.9.3

6 days ago

1.9.2

6 days ago

1.10.0

6 days ago

1.9.0

11 days ago

1.8.0

19 days ago

1.7.0

4 months ago

1.6.1

5 months ago

1.6.0

5 months ago

1.5.2

5 months ago

1.5.1

5 months ago

1.5.0

5 months ago

1.4.0

5 months ago

1.3.0

5 months ago

1.2.0

7 months ago

1.1.0

7 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago