What is the name of the command again to display phantom spawning in Minecraft?

Th
7

What is the name of the command again to display phantom spawning in Minecraft?

Ex

/ gamerule doInsomnia false

Th

Nene already gives something that the phantoms don't spawn after the three nights without sleep.

Th

Okay, I believe you.

Ni

Try / kill @ e [type = minecraft: phantom]

with a command block and a redstone clock

Th

That is clear. But as in the question above and I have already written under another answer, a command is not wanted to kill the phantoms, but that they do not spawn at all.

Ni

Stop insulting me

Th

How so? I don't.