The Book of the Law is the central sacred text of Thelema , written by Aleister Crowley in Cairo , Egypt in the year 1904 . Liber AL vel Legis is the central sacred text of Thelema , written by Aleister Crowley in Cairo , Egypt in the year 1904 .