from django.core.management.base import BaseCommand from library.vanilla_textures import refresh_vanilla_index class Command(BaseCommand): help = 'Rebuild the vanilla entity-texture index (static/vanilla/entity_index.json).' def handle(self, *args, **options): index = refresh_vanilla_index() self.stdout.write(self.style.SUCCESS(f'Indexed {len(index)} entities.'))