ERPNext for each customer of my main ERPNext

I would like that when registering a client (company) in my main ERPNext, an instance of erpnext is installed for this client automatically. When deactivating the client, the erpnext instance of this client is deactivated.

Any idea or suggestion of the best approach?

Basically, each customer must have their own website with erpnext installed, is this possible?

You got to use frappe cloud and voila it’s possible.

Any ideia how to do it locally?

Basically I thought in create an app that intercept the Activation and Deactivation of a customer to enable or disable the customers, that’s a good idea?