Deploy serverless application programatically?


Thanks to serverless, I deployed easily AWS Lambda function my own AWS account. Currently, I wanna to deploy my lambda function to my customers AWS account automatically. I will provide them with a UI that they can enter their AWS credentials (Key + Secret). After that, it will call my API to automatically deploy my solution to their AWS accounts. May I ask that how I can programmatically deploy lambda function using serverless?