mdimport(1) General Commands Manual mdimport(1)

mdimportimport file hierarchies into the metadata datastore.

mdimport [-itpAXLr] [-d level] [-o -outputfile] [ file | directory ... ]

mdimport is used to test Spotlight plug-ins, list the installed plug-ins and schema, and re-index files handled by a plug-in when a new plug-in is installed.

The following options are available:

Request Spotlight to import file or recursively import directory. The files will be imported using the normal mechanisms and attributes will be stored in the Spotlight index. This is the implied switch if none are specified.
Request Spotlight to test import file, sending the result back to mdimport for possible further processing. The attributes will not be stored in the Spotlight index. This is useful to test Spotlight import plug-ins.
level
Print debugging information. This requires -t.