You can use the platform APIs for that. Have a look at https://docs.mendix.com/howto/integration/implement-cicd-pipeline/