To list all the folder names in the current directory in the terminal on a Mac, you can use the ls command with the -d and -1 options.
ls -d */
The -d option tells ls to only list directories, not files, and the -1 option causes ls to print the names of the directories one per line.
Here is an example:
$ ls -d */