I noticed that you have Docs for doing this in a more manual way but there is as way to script this as well
You can use the turbo gen <whatever> --copy to do this as well
https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#copy-an-existing-workspace