Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

db-cli

Command line interface for DesignBuilder file operations. Convert between .dsb, .xml, and .json formats, validate files against the DesignBuilder schema, and inspect schema versions.

Installation

pip install git+https://github.com/DesignBuilderSoftware/db-cli

Commands

CommandDescription
version <file>Show the dsbXML schema version of a file
validate <file>Validate a file against the DesignBuilder schema
xml2json <file>Convert a DesignBuilder XML file to JSON
json2xml <file>Convert a DesignBuilder JSON file to XML
dsb2xml <file> [--output <path>] [--exe <path>]Export a .dsb file to XML using DesignBuilder
closeClose any running DesignBuilder process

Usage

# Inspect schema version
db-cli version Shoebox261.xml
# Validate against schema
db-cli validate Shoebox261.xml
# Convert between XML and JSON
db-cli xml2json Shoebox261.xml
db-cli json2xml Shoebox261.json
# Export .dsb to XML (requires DesignBuilder installed)
db-cli dsb2xml Shoebox261.dsb
db-cli dsb2xml Shoebox261.dsb --output exported.xml --exe "C:\Program Files\DesignBuilder\DesignBuilder.exe"# Close DesignBuilder process
db-cli close

Requirements

  • Python 3
  • DesignBuilder installation (only required for dsb2xml and close commands)

Dependencies

  • fire — CLI generation
  • db-schema — schema validation and conversion utilities
  • db-process — DesignBuilder process management

About

Command line interface for DesignBuilder file operations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages