API based app export

For automatic deployment in case of physical separated environments or time triggered backup processes I would appreciate an API based or another automation based app export function.