Get your taxes done using TurboTax

I have a question, so If I am non-resident (visa student) and have to file 1040-NR AND and wife does not have ITIN when I will be able to apply ITIN for her? I think ITIN works when I met present test and file 1040. If I am wrong please correct it.

Thanks for your help.