Devarim16:15

שִׁבְעַת יָמִים תָּחֹג לַיהוָה אֱלֹהֶיךָ בַּמָּקוֹם אֲשֶׁר־יִבְחַר יְהוָה כִּי יְבָרֶכְךָ יְהוָה אֱלֹהֶיךָ בְּכֹל תְּבוּאָתְךָ וּבְכֹל מַעֲשֵׂה יָדֶיךָ וְהָיִיתָ אַךְ שָׂמֵחַ׃

Seven days you shall keep the festival to the Eternal your Almighty in the place that the Eternal will choose, for the Eternal your Almighty will bless you in all your yield and in all the work of your hands, and you shall be altogether joyful.

Devarim 16:15

שִׁבְעַת יָמִים תָּחֹג

Devarim / Deuteronomy 16:15

שִׁבְעַת יָמִים תָּחֹג לַיהוָה אֱלֹהֶיךָ בַּמָּקוֹם אֲשֶׁר־יִבְחַר יְהוָה כִּי יְבָרֶכְךָ יְהוָה אֱלֹהֶיךָ בְּכֹל תְּבוּאָתְךָ וּבְכֹל מַעֲשֵׂה יָדֶיךָ וְהָיִיתָ אַךְ שָׂמֵחַ׃

Seven days you shall keep the festival to the Eternal your Almighty in the place that the Eternal will choose, for the Eternal your Almighty will bless you in all your yield and in all the work of your hands, and you shall be altogether joyful.

Pshat פְּשָׁט

Only joy

Chizkuni: on Pesach and Shavuot you are busy with the harvest, so the festival is one day. But on the festival of Booths (Sukkot) everything is already gathered in the house, you have nothing to tend, so celebrate seven days. Sforno: He will bless you with a great harvest, and the poor will have many gifts. Be only joyful, and let no sadness mix into the joy. Rashi: by the plain sense this is not a command but a promise. Ibn Ezra: "only" means it will not be otherwise.

How Chizkuni, Sforno, Rashi, and Ibn Ezra explain it

Remez רֶמֶז

Twenty-one

Rosh: three joys are said of Sukkot, one of Shavuot, none of Pesach. On Pesach neither fruit nor grain is gathered, on Shavuot the fruit is, and on Sukkot everything is, and the joy is complete. And the word אַךְ ("only") has the numerical value 21, the number of days when the full Hallel is read. Sefat Emet: אַךְ = 21, like אֶהְיֶה ("I will be"). Shavuot and Shemini Atzeret have no commandment of deed of their own, they are above nature, and one cleaves to them through the Torah.

How Rosh and Sefat Emet explain it

Drash דְּרָשׁ

Joy after judgement

Midrash Aggadah: "altogether joyful" — because in this world there is no complete joy. Why is "joy" not said of Pesach, once of Shavuot and three times of Sukkot? At four times of the year the world is judged: on Pesach for grain, on Shavuot for the fruit of trees, on Rosh HaShanah all pass before Him, and on Sukkot for water. On Pesach the judgement is still ahead, on Shavuot one judgement has passed, and on Sukkot three have passed, hence three joys.

How Midrash Aggadah explain it

Sod סוֹד

Joy refined by awe

Sefat Emet: joy can spread and come to casting off the yoke, so it says "only" (אַךְ), a word of limiting. As gold is cleaned of rust, so joy must be only for the sake of Heaven, without dross. And אַךְ has the numerical value 21: twenty-one days from Rosh HaShanah to Shemini Atzeret. Joy that came through the awe of these days is pure and clear: "I rejoiced out of my awe".

How Sefat Emet explain it