1) Make sure cheats are enabled in your world
2) Give yourself a command block '/give @s command_block' and place it
3) Copy the command from the command's page (CTRL+C) into the command block (CTRL+V)
4) Activate the command blockHow to get the Resource Pack of the command!
Some commands also have additional resource packs. You can download them directly above the command itself. Just put it in your resource pack folder, select it and you're ready to go!