docs: def create():
      '''Create a new user'''
      data = {
          'first_name': click.prompt('First name'),
          'last_name': click.prompt('Last name'),
          'email': click.prompt('Email'),
          'password': click.prompt('Password', hide_input=True),
          'password_confirm': click.prompt('Confirm Password', hide_input=True),
      }
      # Until https://github.com/mattupstate/flask-security/issues/672 is fixed
      with current_app.test_request_context():
          form = RegisterForm(MultiDict(data), meta={'csrf': False})
      if form.validate():
          data['password'] = encrypt_password(data['password'])
          del data['password_confirm']
          data['confirmed_at'] = datetime.utcnow()
          user = datastore.create_user(**data)
          success('User(id={u.id} email={u.email}) created'.format(u=user))
          return user
      errors = '\n'.join('\n'.join(e) for e in form.errors.values())
      exit_with_error('Error creating user', errors)