CLI command to automate creation of new ERPNext site

Hello, I am new to frappe and i am making my own custom app
I want to provide a CLI command to automate creation of new ERPNext site/db on the same bench for a new client
and i want to be able to run this CLI command through Page or API Endpoint request with passing these paramteres (ClientID-SubscriptionID-VATID-ClientName)

any help will be appreciated