docs: def init(ctx):
      '''Initialize your udata instance (search index, user, sample data...)'''
  
      log.info('Apply DB migrations if needed')
      ctx.invoke(migrate, record=True)
  
      ctx.invoke(index)
  
      if IS_TTY:
          text = _('Do you want to create a superadmin user?')
          if click.confirm(text, default=True):
              user = ctx.invoke(user_commands.create)
              ctx.invoke(user_commands.set_admin, email=user.email)
  
          text = _('Do you want to import some data-related license?')
          if click.confirm(text, default=True):
              ctx.invoke(licenses)
  
          text = _('Do you want to create some sample data?')
          if click.confirm(text, default=True):
              ctx.invoke(generate_fixtures)
  
      success(_('Your udata instance is ready!'))