Multiple VLANs cannot be created in a 1-liner on a classic Catalyst IOS Switch.
But you can prepare a command sequence in your preferred text editor and then copy & paste it into the terminal window ofyour switch (ssh, telnet, console...)
The "name" line is optional and of almost no technical relevance, but recommended - you'll have to define your own style and guidelines to naming VLANs.
There is a way to configure multiple VLAN IDs with a 1-liner, separating the list of vlans with commata or defining ranges with hyphens. As other commentators pointed out, older releases need spaces between the numbers and commata or hypens.
See solution as proposed by Cown.
As Andrey has pointed out, manipulating the scope of a given (set) of VLAN(s) can happen in a 1-liner: The
switchport trunk allowed vlan command (in interface configuration mode) works with a set of VLANs on a single line.
interface FastEthernet X/Y
switchport mode trunk
switchport trunk encapsulation dot1q ! <-- some platforms still need that one
switchport nonegotiate ! <-- suggested, if you don't run DTP or VTP
switchport trunk allowed vlan 1,20,30
Adding to that, I strongly suggest to exclusively work with
switchport trunk allowed vlan add ... and
switchport trunk allowed vlan remove ... from the start. Sooner or later in your networking career, you'll learn why if you don't .
 It is probably the one classical human factor error in switched networking: to forget the add/remove keywords when "let me just add that new VLAN to to this 802.1q trunk" - which reduces that trunk to just the VLAN you were about to add. Dpending on where this happens, this can bring down an entire network within a few seconds.