Media:generate-media-types?

Was macht dieser CLI-Befehl genau:
media:generate-media-types

Ich finde in allen Beschreibungen leider nur ein: „Generates the media types for all media entities“.
Hat jemand genauere Infos für mich?

I bumped into this myself as well. The media:generate-media-types scans for all existing media entities (so, all records available in the database table media which equals all of the media found in the Administration under Content > Media. Next, for each media entity, the type is determined - which is either an image, a video, an audio file or a document (like a PDF). This type is then saved to the database table media under the column media_type.

That’s how it technically works. However, it still probably doesn’t tell when this command needs to be run. I guess, in a normal situation, you don’t need it. However, it might come in handy when importing media from an external location?