The first thing you'll need to do when messing around with Minecraft Java Edition commands is open the title's official launcher. Make sure you have Java Edition selected, and then start the game.
There are many different ways for players to buff themselves in Minecraft: getting better gear, enchanting this already powerful gear, and applying positive status effects through items like potions.