google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Allow to push to multiple sources #895

Open kospl opened 2 years ago

kospl commented 2 years ago

Feature request

We have dev project and live addon project.

The code source is same.

We need an option to push somehow to dev project while developing, but there is no clasp push option to change destination.

Possible API (pseudocode): clasp push --destination_clasp_config=.devproject.clasp.json

fantonangeli commented 2 years ago

Hello @kospl , maybe this command can be useful for you: clasp setting scriptId new-id https://github.com/google/clasp#setting

Or if you want to push multiple sources together, you can try this library that uses clasp: https://github.com/fantonangeli/multi-clasp2

kospl commented 2 years ago

Thanks, I'll try it and post any results here.