Suppose you have a folder named test and there’s a folder inside, that you want to exclude it from zipping. Let’s call it exclude_me:

zip -r test.zip test -x \*exclude_me\*

You may need the back slashes.