Please check the reference:
- When I create a new workspace I cant add it to a custom module - #2 by NCP
- When I create a new workspace I cant add it to a custom module - #4 by NCP
As per my understanding, first, you have to the custom workspace in the custom module from locally and then pull your custom app from the frappe cloud.