Minecraft wiki entry for advancement, associated text: To grant the "Cover Me With Diamonds" advancement to your player, execute the command /advancement grant @s only minecraft:story/shiny_gear.
To grant all advancements to every player, execute /advancement grant @a everything.