How to use CLI to do media import a tape ?

Hello,

      I want to write a shell script to media import some LTO6 tapes.Does anyone know how to do media import with CLI ?

Regards,

David