The Chevalley-Eilenberg complex of a dgLa