bind <key> <command>
Binds a key on your keyboard or mouse to a console command. When you press the key, the command runs. Multiple commands can be chained by separating them with semicolons.
Examples
bind "f" "use weapon_flashbang" - Pressing F instantly switches to your flashbang.
bind "mouse4" "+voicerecord" - Holding the side mouse button activates voice chat (push-to-talk).
bind "kp_end" "buy ak47;buy vesthelm;buy smokegrenade;buy flashbang;buy hegrenade" - Numpad 1 buys a full AK loadout in one press.
bind "f" - With only a key argument it prints the command currently bound to F in the console.