# commanded you to do
Here "you" refers to the people of Israel.
# so that his glory may appear to you
"so that he may show you the glory of his presence"