add drush command example

This commit is contained in:
Robert Nasarek 2026-06-25 11:35:58 +02:00
parent 06a36208a9
commit 9024397ae2

View file

@ -28,6 +28,24 @@ Configure at `/admin/config/dfg_3dviewer`, or apply the bundled local developmen
drush dfg-3dviewer:configure
```
Example with lightweight preset with all settings explicit (adjust config with your settings):
```bash
drush dfg-3dviewer:configure \
--main-url=http://example.com/ \
--container=DFG_3DViewer \
--entitybundle=bd3d7baa74856d141bcff7b4193fa128 \
--viewer-file-upload=fbf95bddee5160d515b982b3fd2e05f7 \
--viewer-file-name=faa602a0be629324806aef22892cdbe5 \
--lightweight=1 \
--scale-container-x=1 \
--scale-container-y=1.4 \
--base-module-path=/libraries/dfg-3dviewer/assets \
--entity-id-uri='/wisski/navigate/(.*)/view' \
--view-entity-path=/wisski/navigate/ \
--attribute-id=wisski_id
```
Override individual values with options, for example `--main-url=https://example.test/`. Settings are passed to the browser as `drupalSettings.dfg_3dviewer`.
## Package contents