def METHOD_NAME(self, *args, **options):
    event_slug = options.get("event")
    with scopes_disabled():
        try:
            event = Event.objects.get(slug__iexact=event_slug)
        except Event.DoesNotExist:
            raise CommandError(f'Could not find event with slug "{event_slug}".')
    with scope(event=event):
        logging.info(f"Exporting {event.name}")
        export_dir = get_export_path(event)
        zip_path = get_export_zip_path(event)
        tmp_dir = export_dir.with_name(export_dir.name + "-new")
        delete_directory(tmp_dir)
        tmp_dir.mkdir()
        try:
            export_event(event, tmp_dir)
            delete_directory(export_dir)
            tmp_dir.rename(export_dir)
        finally:
            delete_directory(tmp_dir)
        logging.info(f"Exported to {export_dir}")
        if options.get("zip"):
            make_archive(
                root_dir=settings.HTMLEXPORT_ROOT,
                base_dir=event.slug,
                base_name=zip_path.parent / zip_path.stem,
                format="zip",
            )
            logging.info(f"Exported to {zip_path}")