How do I programmatically generate an entity form?
You can use the entity form builder service.  I was able to load the user form this way (with $entity being the current user):

$entity = User::load($uid);
$user_form = \Drupal::service('entity.form_builder')-&gt;getForm($entity, 'default');


If you want to get the user register form (which is basically an entity form without a saved entity), you can just use the create method on your entity class before passing it to the form:

$entity = User::create();
$user_form = \Drupal::service('entity.form_builder')-&gt;getForm($entity, 'default');