Currently extensions can only be configured via the Auth0 web management interface.
If programmatic management of extensions is something you’d like to see added to the product, you can leave us feature requests and other product feedback at Auth0: Secure access for everyone. But not just anyone.. Everything submitted there routes directly to the product management group for review.