Command line interface#
PyEDB provides a command line interface (CLI) for creating databases, saving changes, running Python code against an EDB, exporting artifacts, and applying configuration files.
Get started#
To see available commands, run:
pyedb --help
pyaedt edb --help
You can use either pyedb <command> or pyaedt edb <command>.
All commands support --json for machine-readable output.
$ pyedb --json version
{"status": "ok", "data": {"version": "0.x.y"}}
$ pyaedt edb --json version
{"status": "ok", "data": {"version": "0.x.y"}}
Main commands#
The CLI is organized into these top-level commands:
version- Show the installed PyEDB versioncreate- Create a new.aedbdatabasesave- Save an EDB in place or as a copyexec- Execute a Python script or inline code against an EDBattach- Open an interactive console attached to an EDBexport- Export project artifacts (IPC2581, HFSS/Q3D/Maxwell projects, and more)config- Export/apply/validate configuration files
Common commands#
Version
pyedb version
Create a new EDB
pyedb create --path my_board.aedb
pyedb create --path my_board.aedb --version 2026.1
Save an existing EDB
pyedb save --path my_board.aedb
pyedb save --path my_board.aedb --output my_board_copy.aedb
Run Python against an EDB
pyedb exec my_script.py --path my_board.aedb
pyedb exec --code "print('hello from pyedb')" --path my_board.aedb
Open an interactive console
pyedb attach --path my_board.aedb
Export commands#
Use the export group to generate files from an EDB design.
pyedb export ipc2581 --path my_board.aedb --output board.xml
pyedb export hfss --path my_board.aedb --output out_dir
pyedb export q3d --path my_board.aedb --output out_dir
pyedb export maxwell --path my_board.aedb --output out_dir
pyedb export siwave-dc-results --path my_board.aedb --siwave-project board.siw --solution-name "DC 1"
pyedb export gds-comp-xml --path my_board.aedb --output control.xml
pyedb export layout-component --path my_board.aedb --output component.aedbcomp
Configuration commands#
Use the config group to work with JSON/TOML configuration files.
pyedb config export --path my_board.aedb --output config.json
pyedb config apply --path my_board.aedb --config config.json
pyedb config validate --path config.json
Get help#
Use --help on any command group to see available options:
pyedb --help
pyedb export --help
pyedb config --help
pyedb exec --help