To give yourself any knife in CS:GO, start an offline match with bots on your own server, enable the developer console and enter sv_cheats 1, mp_drop_knife_enable 1 and a command such as give weapon_knife_karambit (swap karambit for the model you want). The knife spawns on the floor, and an ent_fire command lets you pick it up. All of this works only on a local server with cheats enabled: the commands are blocked in matchmaking, and the model is visible only on your server. Below is the full list of knife commands, the pickup trick, and what changed in CS2.
Commands to Get a Knife in CS:GO
First, create a practice or offline match with bots and turn on the developer console in Settings (the Game tab). Our guide on how to open the console in CS2 walks through it for the current client.
Then enter the two base commands:
sv_cheats 1: enables developer mode; knife commands do not work without it;
mp_drop_knife_enable 1: lets you drop your knife like any other weapon.
Now you can give yourself a knife. Commands for every model:
give weapon_bayonet: Bayonet
give weapon_knife_flip: Flip Knife
give weapon_knife_gut: Gut Knife
give weapon_knife_karambit: Karambit
give weapon_knife_m9_bayonet: M9 Bayonet
give weapon_knife_tactical: Huntsman Knife
give weapon_knife_butterfly: Butterfly Knife
give weapon_knife_falchion: Falchion Knife
give weapon_knife_survival_bowie: Bowie Knife
give weapon_knife_push: Shadow Daggers
give weapon_knife_ursus: Ursus Knife
give weapon_knife_stiletto: Stiletto Knife
give weapon_knife_gypsy_jackknife: Navaja Knife
give weapon_knife_widowmaker: Talon Knife
give weapon_knife_css: Classic Knife (a nod to the CS 1.6 knife)
give weapon_knife_skeleton: Skeleton Knife
give weapon_knife_outdoor: Nomad Knife
give weapon_knife_canis: Survival Knife
give weapon_knife_cord: Paracord Knife
give weapon_knifegg: golden knife from Arms Race
give weapon_knife_ct: default CT knife
give weapon_knife_t: default T knife
These are the standard knife commands in CS:GO, entered in the console one at a time. You can copy them straight from this list instead of typing the names. For how the models differ in shape and animations, see our guide to CS2 knife types.
An experienced player will spot the catch: a spawned knife can be dropped, but you cannot pick it back up the normal way. A separate command fixes that.
Commands to Pick Up a Knife in CS:GO
To pick up a dropped knife, follow these steps:
mp_drop_knife_enable 1
give weapon_knife_ursus (as an example)
ent_fire weapon_knife addoutput "classname weapon_knifegg"
The last command changes the class of the knife lying on the floor, after which the game lets you pick it up. Most guides use this universal form with weapon_knifegg, and it works for any model: only the knife name in the give command changes. If it does not work, check that cheats are on and that the knife name has no typos.
The full list looks like this (give and pickup on one line):
Ursus Knife: give weapon_knife_ursus; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Navaja Knife: give weapon_knife_gypsy_jackknife; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Stiletto Knife: give weapon_knife_stiletto; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Talon Knife: give weapon_knife_widowmaker; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Bowie Knife: give weapon_knife_survival_bowie; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Shadow Daggers: give weapon_knife_push; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Falchion Knife: give weapon_knife_falchion; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Butterfly Knife: give weapon_knife_butterfly; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Huntsman Knife: give weapon_knife_tactical; ent_fire weapon_knife addoutput "classname weapon_knifegg"
M9 Bayonet: give weapon_knife_m9_bayonet; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Bayonet: give weapon_bayonet; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Flip Knife: give weapon_knife_flip; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Gut Knife: give weapon_knife_gut; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Karambit: give weapon_knife_karambit; ent_fire weapon_knife addoutput "classname weapon_knifegg"
Press G to drop the knife; this works once mp_drop_knife_enable 1 is set.
Giving Yourself a Knife Through File Editing
If a knife command does not work in CS:GO, the parameters were most likely entered with a typo. For those cases the CS:GO client had a backup method that involved editing game files. It belongs to the old client: CS2 uses a different file structure, so in the current game stick to console commands.
Important: always keep a copy of the original file. Modified game files can stop you from joining official matches, so restore them before you queue for matchmaking.
The CS:GO script files were located at:
/steamapps/common/Counter-Strike Global Offensive/csgo/scripts
The drive depends on where the game is installed. The easiest way to find the folder is through Steam:
open the Steam client;
go to the Library section;
right-click the game and choose Manage, then Browse local files, as shown in the screenshot below.

Steam will open the folder where the client is installed. From there, find the scripts folder.
Open the weapon_knife file, find the MeleeWeapon line and change "0" to "1" (on some clients the file may be missing). Save it and start an offline server as described above.
Before you switch from practice to regular matchmaking, restore the original file from your copy. In the best case, the game simply will not let you into a match.
Knife Commands in CS2
The basic approach carried over to CS2: on your own server you still need sv_cheats 1 and mp_drop_knife_enable 1, and models are given with the same give commands. Guides for the new client also use subclass_change with a model number (for example, 515 for the Butterfly Knife) to swap the knife in your hands. For a step-by-step walkthrough in the current client, see how to give yourself a knife in CS2.
These commands only give you the bare knife model, and it disappears when the server closes. To get a knife with a finish into your inventory, you can unbox one, buy it on the LIS-SKINS marketplace, or craft one with a trade-up contract: since October 2025, 5 Covert skins can be traded up into a random knife or pair of gloves. Read more in our guide to crafting knives and gloves and in our overview of every way to get a knife in CS2.
We hope these knife console commands help you try every model in practice and pick the one worth hunting down with a skin.
