You can add a name list from the misc tab. There's an option for Commander names as well. Can't add rank lists.
For normal name lists (things that can be used for ships or planets) make a txt file with each separate line being an entry.
For commander name lists make two files: forename and surname. Same thing here, each line is an entry.