If you have content in one project that you want to copy over to another, we have a Python script that lets you copy a space from one project to another (using the Lightdash API). This means you could copy, for example, a chart or dashboard from a preview project into a production project in Lightdash.
The script is copying the entire project content but not project configuration, user permissions, attributes, etc.
To use the script, you just need to change the constants at the top of the file and then run:
โ
poetry install
poetry run python example1_copy_space.py