cli lookup script