How do I spawn a baby villager using commands? [duplicate]

I am trying to spawn a baby villager using the following command:

/summon villager ~ ~ ~ {Age:-2000000000}

But it isn’t working. What is my error?


Solution 1:

The command should be /summon villager ~ ~ ~ {IsBaby:1b}