Do any official Star Wars text adventure games exist? Was there any attempt at producing a Star Wars text adventure while text adventure game were still popular?
No official Star Wars text adventure game exists, and I haven't found any mention of an attempt at making one. The few official Star Wars games produced in the 1980s, the heyday of commercial text adventures, were all graphical action games, and LucasArts' first few adventure games (Labyrinth, Maniac Mansion, Zak McKracken) were all graphical adventure games.
The earliest fan attempt I've been able to find was 1979's Dog Star Adventure, which is historically relevant as the first text adventure to have its source code published. From Wikipedia:
The game takes place in the Star Wars universe, loosely following the plot of the movie during the action that takes place on the Death Star. Names of the various characters are changed to avoid copyright issues. The player has to gather a number of items to repair their ship, rescue princess Leya, and escape without being detected by the many Roche Soldiers.
A port to the Commodore PET was made by David Malmberg in 1980, with most of the names returned to their Star Wars versions.