Spawning a prop by a key

I know how to spawn a prop by command, it’s gm_spawn propdirectory, but sadly I can’t do it with bind key gm_spawn propdirectory. It gives me:
Bind <key> [command] or something… If I press that key it doesn’t spawn, how do I fix that?

bind key “gm_spawn path”

Thank you! that works :v: