Probably this builder can help you in some cases https://github.com/Insality/defold-deployer
You place the settings
file at project root, which can be configured to specific Defold version (example). But it allows you to build & run the game from CLI, not from Defold Editor
Deployer also allows you to easily build your game on CI if someone is interested (example)