20 “When your child asks you in the future, ⌊saying⌋, ‘What is the meaning of the legal provisions and the rules and the regulations that Yahweh our God commanded for you?’ 21 Then you shall say to your child, ‘We were slaves of Pharaoh in Egypt, and Yahweh brought us out from Egypt with a strong hand. 22 And Yahweh gave great and awesome signs and wonders in Egypt against Pharaoh and against his entire household ⌊in our presence⌋. 23 But he brought us out from there in order to bring us here to give us the land that he swore to our ancestors. 24 And so Yahweh commanded us to observe all of these rules and to revere Yahweh our God ⌊for our benefit⌋ ⌊all the days that we live⌋, ⌊as it is today⌋. 25 And it shall be righteousness for us if we diligently observe and do all of this commandment ⌊before⌋ Yahweh our God, as he has commanded us.’ Deuteronomy 06 : 20-25 (LEB)
20 כִּֽי־יִשְׁאָלְךָ֥ בִנְךָ֛ מָחָ֖ר לֵאמֹ֑ר מָ֣ה הָעֵדֹ֗ת וְהַֽחֻקִּים֙ וְהַמִּשְׁפָּטִ֔ים אֲשֶׁ֥ר צִוָּ֛ה יְהוָ֥ה אֱלֹהֵ֖ינוּ אֶתְכֶֽם׃ 21 וְאָמַרְתָּ֣ לְבִנְךָ֔ עֲבָדִ֛ים הָיִ֥ינוּ לְפַרְעֹ֖ה בְּמִצְרָ֑יִם וַיּוֹצִיאֵ֧נוּ יְהוָ֛ה מִמִּצְרַ֖יִם בְּיָ֥ד חֲזָקָֽה׃ 22 וַיִּתֵּ֣ן יְהוָ֡ה אוֹתֹ֣ת וּ֠מֹפְתִים גְּדֹלִ֨ים וְרָעִ֧ים׀ בְּמִצְרַ֛יִם בְּפַרְעֹ֥ה וּבְכָל־בֵּית֖וֹ לְעֵינֵֽינוּ׃ 23 וְאוֹתָ֖נוּ הוֹצִ֣יא מִשָּׁ֑ם לְמַ֙עַן֙ הָבִ֣יא אֹתָ֔נוּ לָ֤תֶת לָ֙נוּ֙ אֶת־הָאָ֔רֶץ אֲשֶׁ֥ר נִשְׁבַּ֖ע לַאֲבֹתֵֽינוּ׃ 24 וַיְצַוֵּ֣נוּ יְהוָ֗ה לַעֲשׂוֹת֙ אֶת־כָּל־הַחֻקִּ֣ים הָאֵ֔לֶּה לְיִרְאָ֖ה אֶת־יְהוָ֣ה אֱלֹהֵ֑ינוּ לְט֥וֹב לָ֙נוּ֙ כָּל־הַיָּמִ֔ים לְחַיֹּתֵ֖נוּ כְּהַיּ֥וֹם הַזֶּֽה׃ 25 וּצְדָקָ֖ה תִּֽהְיֶה־לָּ֑נוּ כִּֽי־נִשְׁמֹ֨ר לַעֲשׂ֜וֹת אֶת־כָּל־הַמִּצְוָ֣ה הַזֹּ֗את לִפְנֵ֛י יְהוָ֥ה אֱלֹהֵ֖ינוּ כַּאֲשֶׁ֥ר צִוָּֽנוּ׃ ס Deuteronomy 06 : 20-25 (LhB)
The use of the hebrew, "before/to the face of Yahweh Elohenu [our God/ God of us]" (לִפְנֵ֛י יְהוָ֥ה אֱלֹהֵ֖ינוּ) The Hebrew evinces the idea that Yahweh would be present locally with Israel in the land, so that their actions would be performed BEFORE HIS FACE DIRECTLY. The first commandment is concerned with the setup of Yahweh being locally in the presence of Israel, in the land, in the tabernacle. The purpose of the commands is how to live with Yahweh locally, NOW THAT HE HAS SHOWN UP, SAVED YOU AND BROUGHT YOU NEAR.
More simply, the purpose of commands is how to be proteges, kids, rooming with Yahweh. It's how we are to share space with Yahweh as our roomie.