Unfortunately, there isn't really a legitimate console command in Team Fortress 2 that lets you unlock weapons or generate metal.
The game's item and resource systems are handled server-side to keep things fair, so the console doesn't offer a shortcut for that kind of thing. Your best route to new weapons and metal is simply playing the game and earning them normally.